JIT Compilation for win form app

  • Thread starter Thread starter Big D
  • Start date Start date
B

Big D

I am working on a win app, and when testing it, I encounter an error that
results in a dialog opening and giving me a generic error (object ref not
set to instance of an object or the like). It doesn't tell me what the ref
or obj is, and doesn't give me a line number. Isn't this part of JIT??? I
get that when working in ASP.Net apps.

I am building it in debug mode.

My Machine.config file in 1.1 is updated to inclue <system.windows.forms
jitDebugging="true" />, but that had no effect. There is no
Applicaiton.config file that I can find that is generated by studio... if it
exists, does it superceed the setting is Machine.config?

Isn't studio considered a JIT Debugger? I guess I don't understand. ;-)

Thanks,

MCD
 
I think you must debug your app...The problem must be that you are trying to get some value of one instance of an object that hasn't been initialized.

I hope this help.
 
No, it's running your code and finding a null reference to an object.
Compile the code, before you run it, press CTLR + ALT + E, then Alt + B,
then Enter. That will stop you at the point of exception. To remove:
CTLR + ALT + E, then Alt + O, then Enter
 
Hi Big D,

Thank you for posting in the community!

I think you may follow Alvin's suggestion, to enable the exception to be
captured into debugger in IDE.

Addtionally, in that "Exception" dialog, there are 4 kinds of exceptions.
You should enable for "Common Language Runtime Exceptions".

Thank you for your patience and cooperation. If you have any questions or
concerns, please feel free to post it in the group. I am standing by to be
of assistance.

Best regards,
Jeffrey Tan
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.
 
AH! Thanks so much. That's it!

-MC D
Alvin Bruney said:
No, it's running your code and finding a null reference to an object.
Compile the code, before you run it, press CTLR + ALT + E, then Alt + B,
then Enter. That will stop you at the point of exception. To remove:
CTLR + ALT + E, then Alt + O, then Enter

--
Regards,
Alvin Bruney [ASP.NET MVP]
Got tidbits? Get it here...
http://tinyurl.com/3he3b
Big D said:
I am working on a win app, and when testing it, I encounter an error that
results in a dialog opening and giving me a generic error (object ref not
set to instance of an object or the like). It doesn't tell me what the ref
or obj is, and doesn't give me a line number. Isn't this part of JIT??? I
get that when working in ASP.Net apps.

I am building it in debug mode.

My Machine.config file in 1.1 is updated to inclue <system.windows.forms
jitDebugging="true" />, but that had no effect. There is no
Applicaiton.config file that I can find that is generated by studio...
if
it
exists, does it superceed the setting is Machine.config?

Isn't studio considered a JIT Debugger? I guess I don't understand. ;-)

Thanks,

MCD
 
Back
Top