473,473 Members | 1,584 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

JIT Compilation for win form app

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
Nov 15 '05 #1
3 951

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.
Nov 15 '05 #2
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" <a@a.com> wrote in message
news:ej*************@tk2msftngp13.phx.gbl...
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

Nov 15 '05 #3
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.

Nov 15 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Novice | last post by:
Hi all, I'm afraid this is the second posting of this information as I didn't get a response on the previous post. I will try to shorten my message (i.e. be more concise) in the hopes that it will...
3
by: ME | last post by:
I would like to write a .NET Compact Framework App Simultaneously with a standard .NET App using Conditional Compilation. However I have run into a bit of, what I believe, a misunderstanding. How...
11
by: Michael Gaab | last post by:
Compilation in c generally has four phases 1. Preprocessing 2. Compilation 3. Assembly 4. Linking. If I use a flag that will not link the code, order of compilation is not an issue,...
12
by: wanghz | last post by:
Hi, Could I ask some questions about the conditional compilaion? Suppose I have three simple files: a.c, b.c and c.h /* --------a.c--------- */ #include <stdio.h> #include "c.h" int...
2
by: Roland Hall | last post by:
Can someone please explain this error to me? Compilation Error Description: An error occurred during the compilation of a resource required to service this request. Please review the following...
5
by: Stuart Carnie | last post by:
I suspect it's unlikely, but you'll never know until you ask, but are there any attributes that would allow us to contribute to the compiled output? e.g. // this class exists in a separate,...
9
by: gjiang_usenet | last post by:
Hi, I have an application compiled using gcc under DB2 v8 for Windows Fixpak 12. It works fine for this fixpak. However, if I move the application to a different DB2 fixpak (on Windows), it...
35
by: mwelsh1118 | last post by:
Why doesn't C# allow incremental compilation like Java? Specifically, in Java I can compile single .java files in isolation. The resulting individual .class files can be grouped into .jar files....
1
G Jones
by: G Jones | last post by:
For the life of me I can't figure out this problem. I get this Microsoft VBScript compilation error '800a0400' on the form processor and everything looks fine. Maybe you someone can point out my...
5
by: dancer | last post by:
Using Asp.net 1.1 Can somebody tell me why the code following gives this error message: Compilation Error Description: An error occurred during the compilation of a resource required to service...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.