Activity overview
Latest activity by leppie
Simple (and verified) IL sequence causes crash on decompile
.method static object Foo(object obj)
{
ldarg.0
dup
brtrue.s L1
ret
L1:
callvirt instance class [mscorlib]System.Type [mscorlib]System.Object::Ge...
Thanks [image]
It seems to run now, but for some reason I am hitting a null ref exception.
That code the Brian pointed has some extra nastiness that could cause it to fail worse than it should. That said, the code should never fail there either, but for some reason it is.
I will investigate some more. / comments
Thanks
It seems to run now, but for some reason I am hitting a null ref exception.
That code the Brian pointed has some extra nastiness that could cause it to fail worse than it should. That said,...
That condition can only occur if binding failed, which does not seem to ever happen.
I did however did do something the other day that caused that line again, and funnily enough VS.NET started doing weird UI stuff. I will try recreate the code and see why that happens.
Unfortunately the trial has expired now, I dunno if you can extend it somehow [image] / comments
That condition can only occur if binding failed, which does not seem to ever happen.
I did however did do something the other day that caused that line again, and funnily enough VS.NET started doin...
Unfortunately I am not in control of any of that [image]
I did a search thru the source and I cannot find a place where generic could be used. I dont use it. And it doesnt appear in any stub code in the generated assemblies either.
I did however notice when calling a DynamicMethod created at runtime seems to have a different signature the 'saved' version. It seems to prepend a parameter of type object[]. I also find some confusion about the assembly binding in this scenario. Maybe this has something to do with it. I am at a loss. :? / comments
Unfortunately I am not in control of any of that
I did a search thru the source and I cannot find a place where generic could be used. I dont use it. And it doesnt appear in any stub code in the g...
Any joy yet? / comments
Any joy yet?
Ha!
I got it figured out [image]
As I was preparing to package it up, I just did a test run without ANTS. All good. Then I tried ANTS, it didnt crash! Then I saw what was causing it. Obviously the DLR creates assemblies with Reflection.Emit, and the ANTS run was the 2nd pass and didnt crash because the assemblies were already compiled.
Funny enough, it exactly that compilation bit I want timing for :shock:
I will send you a build that does not save assemblies, hence they should crash ANTS everytime. / comments
Ha!
I got it figured out
As I was preparing to package it up, I just did a test run without ANTS. All good. Then I tried ANTS, it didnt crash! Then I saw what was causing it. Obviously the DLR cr...
Just tested it on my work PC (XP, home one is Vista), same result. / comments
Just tested it on my work PC (XP, home one is Vista), same result.
Just to add, it seems DEP is kicking. / comments
Just to add, it seems DEP is kicking.
Very interesting...
The only other error I have seen with gppg.exe itself was when the output-file (which you should not have) was set as read-only.
If no joy, send me a direct email, so I can forward you the 2 generated files.
Thanks / comments
Very interesting...
The only other error I have seen with gppg.exe itself was when the output-file (which you should not have) was set as read-only.
If no joy, send me a direct email, so I can forw...