icsharpcode/ILSpy — Issue #303: ILSpy will popup "sorry, my crash" window when click the "Cancel" button during decompiling all assemblies
Author: Steve-Teng
Created: 2011-12-28 09:02:36+00:00
State: open

With the source code,1.0.0-525, launch IL Spy, click the "DEBUG -- Decompile All" menu, during decompiling period, click the "Cancel" button.

The IL Spy will pop up the error dialog, "Sorry, my crash", very sorry i don't know how to attach the screen shot in github.

So i list the detailed exception here:
// C:\Users\[MyUserName]\Personal\Tools\ILSpy-1.0.0-525\TestPlugin\bin\Debug\ILSpy.SharpDevelop.LGPL.dll
// ILSpy.SharpDevelop.LGPL, Version=2.0.0.0, Culture=neutral, PublicKeyToken=d4bfe873e7598c49

// Architecture: AnyCPU
// Runtime: .NET 4.0

System.OperationCanceledException: The operation was canceled.
at System.Threading.CancellationToken.ThrowIfCancellationRequested()
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters) in C:\Users\[MyUserName]\Personal\Tools\ILSpy-1.0.0-525\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDefinition methodDef, DecompilerContext context, IEnumerable`1 parameters) in C:\Users\[MyUserName]\Personal\Tools\ILSpy-1.0.0-525\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 80
at ICSharpCode.Decompiler.Ast.AstBuilder.CreateMethodBody(MethodDefinition method, IEnumerable`1 parameters) in C:\Users\[MyUserName]\Personal\Tools\ILSpy-1.0.0-525\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 990
at ICSharpCode.Decompiler.Ast.AstBuilder.CreateMethod(MethodDefinition methodDef) in C:\Users\[MyUserName]\Personal\Tools\ILSpy-1.0.0-525\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 755
at ICSharpCode.Decompiler.Ast.AstBuilder.AddTypeMembers(TypeDeclaration astType, TypeDefinition typeDef) in C:\Users\[MyUserName]\Personal\Tools\ILSpy-1.0.0-525\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 733
at ICSharpCode.Decompiler.Ast.AstBuilder.CreateType(TypeDefinition typeDef) in C:\Users\[MyUserName]\Personal\Tools\ILSpy-1.0.0-525\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 340
at ICSharpCode.Decompiler.Ast.AstBuilder.AddType(TypeDefinition typeDef) in C:\Users\[MyUserName]\Personal\Tools\ILSpy-1.0.0-525\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 229
at ICSharpCode.Decompiler.Ast.AstBuilder.AddAssembly(AssemblyDefinition assemblyDefinition, Boolean onlyAssemblyLevel) in C:\Users\[MyUserName]\Personal\Tools\ILSpy-1.0.0-525\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 182
at ICSharpCode.ILSpy.CSharpLanguage.DecompileAssembly(LoadedAssembly assembly, ITextOutput output, DecompilationOptions options) in C:\Users\[MyUserName]\Personal\Tools\ILSpy-1.0.0-525\ILSpy\Languages\CSharpLanguage.cs:line 275
at ICSharpCode.ILSpy.DecompileAllCommand.<>c__DisplayClassb.<>c__DisplayClassd.b__7(LoadedAssembly asm) in C:\Users\[MyUserName]\Personal\Tools\ILSpy-1.0.0-525\ILSpy\Commands\DecompileAllCommand.cs:line 46