|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Obscure errorHi on executing my code I get the following :
An unhandled exception of type 'System.NullReferenceException' occurred in Unknown Module. Additional information: Object reference not set to an instance of an object. But when I step through thr code on load and dont get this error , any ideas waht could be casuing this ? > Hi on executing my code I get the following : A possible explanation under VS 2003 is that you have run into a bug in the > > An unhandled exception of type 'System.NullReferenceException' occurred in > Unknown Module. > > Additional information: Object reference not set to an instance of an > object. > > But when I step through thr code on load and dont get this error , any ideas > waht could be casuing this ? ide/debugger that I have also seen. When you have a situation that can reproduce the problem, try running the exe outside the ide/debugger. You may not be able to reproduce the exception. Go back to the ide/debugger, and the problem will show up. If all this occurs as I have described, then IMO you have run into the aforementioned ide/debugger bug. In all my problems in this area, the 'unknown module' exceptions were rare and intermittent, so my solution was to ignore them. Do your exceptions happen rarely? often? always? Also, I have no idea if this problem remains under VS 2005. Also, I am using FW 1.1, SP1, and since installing SP1, I don't recall having the problem, although someone else described such a situation in these newsgroups. Search these newsgroups for "unknown module" and you will find some interesting reading. Happens always on load. By the sounds of it , it is this bug you mentioned.
I think the best thing for me to do is to ignore it and make sure that it doesnt occur in the final compiled code. Thanks Show quoteHide quote "AMercer" <AMer***@discussions.microsoft.com> wrote in message news:54AA4180-4910-42F4-9F7C-54D4860FB84A@microsoft.com... >> Hi on executing my code I get the following : >> >> An unhandled exception of type 'System.NullReferenceException' occurred >> in >> Unknown Module. >> >> Additional information: Object reference not set to an instance of an >> object. >> >> But when I step through thr code on load and dont get this error , any >> ideas >> waht could be casuing this ? > > A possible explanation under VS 2003 is that you have run into a bug in > the > ide/debugger that I have also seen. When you have a situation that can > reproduce the problem, try running the exe outside the ide/debugger. You > may > not be able to reproduce the exception. Go back to the ide/debugger, and > the > problem will show up. If all this occurs as I have described, then IMO > you > have run into the aforementioned ide/debugger bug. > > In all my problems in this area, the 'unknown module' exceptions were rare > and intermittent, so my solution was to ignore them. Do your exceptions > happen rarely? often? always? Also, I have no idea if this problem > remains > under VS 2005. Also, I am using FW 1.1, SP1, and since installing SP1, I > don't recall having the problem, although someone else described such a > situation in these newsgroups. Search these newsgroups for "unknown > module" > and you will find some interesting reading. > Jon Vaughan wrote:
> Happens always on load. By the sounds of it , it is this bug you mentioned. I had the following happen to me once:> I think the best thing for me to do is to ignore it and make sure that it > doesnt occur in the final compiled code. > > Thanks private A as new myClass1 .... .... .... private B as new myClass2(A) The compiler decided to run B first one day out of the blue and A was not yet initialized.
Controling Event Sequencing...
Dates at Midnight Rewriting the Textbox Registering hot-keys for your Winform DatagridView comboboxcolumn - assign cell value [Regular Expression] match a word with interpunctuation Newbie Needs Help ! Getting saved values back to display after Update VB2003 dll Used in VB2005` Serialize Treeview Control |
|||||||||||||||||||||||