473,396 Members | 1,766 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Obscure error

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 ?
Jun 27 '06 #1
3 928
> 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.

Jun 27 '06 #2
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
"AMercer" <AM*****@discussions.microsoft.com> wrote in message
news:54**********************************@microsof t.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.

Jun 27 '06 #3

Jon Vaughan wrote:
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


I had the following happen to me once:

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.

Jun 28 '06 #4

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

Similar topics

1
by: Ryan | last post by:
hi i am having a problem with a php script i am trying to write. the problem is that the ouput from the script (the html) was sometimes being truncated, but sometimes it would work as expected....
6
by: Batista, Facundo | last post by:
I'm doing a small program, in which the user will have the option to enter his/her password everytime, or just save it (to a file). So, is there a module to obscure the password text in a secure...
2
by: Frank Millman | last post by:
Hi all Below is the text of a message I was about to send in connection with an obscure problem. I have now almost got to the bottom of it, and am fairly confident that it is a bug in pyPgSQL. I...
14
by: Andrew Poulos | last post by:
I've built a javascript driven quiz. Given that client-side scripting is not secure, is there a way to "obscure" answers so that they are unavailable to the casual viewer? For example, If I have an...
24
by: Massimo Soricetti | last post by:
Hello, I'm not a C newbie, but I'm teaching C programming (well... FIRST programming and then C) to other guys these days and it's driving me to some reflexions on the language. It's not...
2
by: subnunciation | last post by:
i know, this shouldnt be a conundrum right? one just shouldnt divide by zero. but this is suddenly happening *all over* my site. after chasing the error here and there, i simplified things down to:...
0
by: Robert Altland | last post by:
I've encountered the following exception when deploying my solution to a load balanced environment: Unable to find assembly 'App_WebReferences.wayyy8_t, Version=0.0.0.0, Culture=neutral,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
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,...

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.