1

Closed

NullPoinerException - InitializeEmbeddedResourcesGroup

description

You could reproduce by decompilation of attached DLL.
You may need ikvm binaries
http://www.frijters.net/ikvmbin-0.39.3363.zip
 
FileGenerator.dll!FileGenerator.AddIn.Generators.AssemblyFileGenerator.InitializeEmbeddedResourcesGroup() + 0x53 bytes  
FileGenerator.dll!FileGenerator.AddIn.Generators.AssemblyFileGenerator.Generate() + 0x3a bytes  
FileGenerator.dll!FileGenerator.AddIn.UI.FileGeneratorControl.GenerateFiles(object data) + 0x1f2 bytes  
mscorlib.dll!System.Threading._ThreadPoolWaitCallback.WaitCallback_Context(object state) + 0x2f bytes   
mscorlib.dll!System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, object state) + 0x6f bytes    
mscorlib.dll!System.Threading._ThreadPoolWaitCallback.PerformWaitCallbackInternal(System.Threading._ThreadPoolWaitCallback tpWaitCallBack) + 0x53 bytes 
mscorlib.dll!System.Threading._ThreadPoolWaitCallback.PerformWaitCallback(object state) + 0x59 bytes

file attachments

Closed Mar 26, 2009 at 6:13 PM by jasonrbock
I didn't get that bug, but I got this:

System.InvalidOperationException was unhandled
Message="Invalid branching statement for condition expression with target offset 00CE."
Source="Reflector.Application"
StackTrace:
   at ឺ.ᜆ(Int32 A_0)
   at ឺ.ᜋ(Int32 A_0)
   at ឺ.ᜂ(Int32 A_0, Int32 A_1)
   at ឺ.ᜀ(IMethodDeclaration A_0, IMethodBody A_1)
   at ឤ.ᜀ(IMethodDeclaration A_0)
   at ᜭ.ᜁ(IMethodDeclarationCollection A_0)
   at ឤ.ᜀ(ITypeDeclaration A_0)
   at ឥ.ᜀ(ITypeDeclaration A_0, Boolean A_1, Boolean A_2)
   at FileGenerator.AddIn.Generators.TypeFileGenerator.GetFormatter() in C:\JasonBock\Personal\.NET Projects\FileGenerator\FileGenerator\AddIn\Generators\TypeFileGenerator.cs:line 86
   at FileGenerator.AddIn.Generators.TypeFileGenerator.Generate() in C:\JasonBock\Personal\.NET Projects\FileGenerator\FileGenerator\AddIn\Generators\TypeFileGenerator.cs:line 113
   at FileGenerator.AddIn.Generators.ModuleFileGenerator.Generate() in C:\JasonBock\Personal\.NET Projects\FileGenerator\FileGenerator\AddIn\Generators\ModuleFileGenerator.cs:line 45
   at FileGenerator.AddIn.Generators.AssemblyFileGenerator.Generate() in C:\JasonBock\Personal\.NET Projects\FileGenerator\FileGenerator\AddIn\Generators\AssemblyFileGenerator.cs:line 123
   at FileGenerator.AddIn.UI.FileGeneratorControl.GenerateFiles(Object data) in C:\JasonBock\Personal\.NET Projects\FileGenerator\FileGenerator\AddIn\UI\FileGeneratorControl.cs:line 338
   at System.Threading._ThreadPoolWaitCallback.WaitCallback_Context(Object state)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
   at System.Threading._ThreadPoolWaitCallback.PerformWaitCallbackInternal(_ThreadPoolWaitCallback tpWaitCallBack)
   at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback(Object state)
InnerException:

When I debugged it, it was when it was trying to write out the following class:

net.sf.robocode.serialization.RbSerializer

Seems like the problem is with deepCopy():

[Please describe what might have caused this error.]

Translation failure in 'net.sf.robocode.serialization.RbSerializer.deepCopy(Byte, Object) : Object' in 'robocode, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null'.

System.InvalidOperationException


InnerException:

Invalid branching statement for condition expression with target offset 0038.

System.InvalidOperationException

at ឺ.ᜆ(Int32 A_0)
at ឺ.ᜋ(Int32 A_0)
at ឺ.ᜂ(Int32 A_0, Int32 A_1)
at ឺ.ᜀ(IExceptionHandler A_0)
at ឺ.ᜂ(Int32 A_0, Int32 A_1)
at ឺ.ᜀ(IMethodDeclaration A_0, IMethodBody A_1)
at ឤ.ᜀ(IMethodDeclaration A_0)
at ឥ.ᜁ(IMethodDeclaration A_0)
at ᝎ.ᜀ(Boolean A_0, Boolean A_1, Boolean A_2)

Both of these seem like they're Reflector-based. I'd suggest you take this up with Red Gate.

comments