We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0750564 commit a4421c9Copy full SHA for a4421c9
SvgFileType/SvgFileType.cs
@@ -215,7 +215,17 @@ public static Document Get(Stream input)
215
{
216
if (p.Exception != null && !p.IsCanceled)
217
218
- MessageBox.Show(p.Exception.Message);
+ if (p.Exception.InnerExceptions != null && p.Exception.InnerExceptions.Any(exception => exception is OutOfMemoryException))
219
+ {
220
+ MessageBox.Show("Not enought memory to complete this operation.");
221
+ }
222
+ else
223
224
+ var innerExpection = p.Exception?.InnerException?.Message;
225
+ MessageBox.Show(p.Exception.Message + ". Message:" + innerExpection);
226
227
+
228
+ dialog.DialogResult = DialogResult.Cancel;
229
}
230
else
231
0 commit comments