Error in HeaderControl ctor

.NET obfuscator and automated error reporting

Moderators: Luke Jefferson, melvyn.harbour, dom.smith

Error in HeaderControl ctor

Postby garethhayter » Thu Dec 22, 2011 10:17 pm

I'm using version 6.5 with a custom UI. When an unhandled exception occurs, the exception reporting form no longer displays due to an internal exception in the SmartAssembly code:

NullReferenceException in SmartAssembly.SmartExceptionsCore.UI.HeaderControl.ctor()

Any ideas about how to fix this? I've recompiled the custom UI with the 6.5 assemblies.

Thanks,
Gareth.
Gareth Hayter
garethhayter
 
Posts: 32
Joined: Tue Apr 20, 2010 7:08 am

Postby Brian Donahue » Tue Dec 27, 2011 3:51 pm

Hi Gareth,

That is not a lot of information to go on. Did you try rebuilding with diagnostic information and see if you can get an error report from the assembly when it fails?
Brian Donahue
 
Posts: 6670
Joined: Mon Aug 23, 2004 10:48 am

Postby Brian Donahue » Wed Jan 04, 2012 2:17 pm

Sorry, but I can't see anything in the constructor that would cause a null-reference, except possibly something odd to do with fonts or system colors.

Can you get the complete stack trace from this application?

If you're not having any luck with the self-diagnostic, you can try attaching the Red Gate debugger to the protected version of the assembly.
Brian Donahue
 
Posts: 6670
Joined: Mon Aug 23, 2004 10:48 am

Postby Brian Donahue » Tue Jan 10, 2012 3:15 pm

Do you still have this problem if you run the program as administrator? I think it may be trying to get the application icon out of a different assembly.
Brian Donahue
 
Posts: 6670
Joined: Mon Aug 23, 2004 10:48 am

Postby garethhayter » Wed Jan 18, 2012 11:43 pm

Hi Brian. Sorry about the delay in my reply. I realised that I had the .Net 4.5 preview installed on my machine as well, which is supposed to install side-by-side with 4.0. When I uninstalled 4.5 and repaired 4.0 then this error went away, although I now have another error which I'll report separately.

Thanks for your help with this.

By the way, your Red Gate Debugger is a fantastic tool.

Kind regards,
Gareth.
Gareth Hayter
garethhayter
 
Posts: 32
Joined: Tue Apr 20, 2010 7:08 am

Postby Brian Donahue » Thu Jan 19, 2012 10:18 am

Hi Gareth,

Thanks for the complement - Red Gate are looking into doing some new and exciting stuff with the MS Debugger Engine, which will hopefully benefit a lot of people.

Sounds to me like you had a problem with incompatible resources, in the end.
Brian Donahue
 
Posts: 6670
Joined: Mon Aug 23, 2004 10:48 am

Postby claus.net » Wed Nov 14, 2012 9:57 am

Brian, could you please be more specific what you mean by "incompatible resources"? I have the problem as well and I really don't want to uninstall .NET Framework 4.5, nor should I have to imo.

I'm targeting .NET 4.0.
claus.net
 
Posts: 6
Joined: Thu May 26, 2011 2:55 pm


Return to SmartAssembly 6

Who is online

Users browsing this forum: No registered users and 0 guests