How to find "Unknown Module"

  • Thread starter Thread starter jon morgan
  • Start date Start date
J

jon morgan

Hi,

Just how do you track down the location of an exception when all you get is
a message saying "NullReferenceException occured in Unknown Module" ?

It seems like the proverbial needle in a haystack when the debugger doesn't
show you the line in your program that triggered the external error.

Thanks for any help

Jon
 
If you search all these newsgroups for "Unknown Module", you will find a lot
of similar inquiries. I believe there is a bug in the .net ide, I asked
about it, I got no reply. I have a situation that is similar to yours that I
can recreate in the ide but not when I run the exe outside the ide. Does
your problem show up in the ide only?
 
Hello Alan,

Thanks for replying. Yes I know there are lots of similar queries and we do
indeed share exactly the same symptoms: the error occurs in the ide and not
when running the exe.

As I understand it this sort of "first chance" exception is handled by the
CLR when the debugger doesn't jump in. Well fine, but you'd have thought
that there should be some way of telling the debugger not to break unless
it's going to tell you where you are in your own code.

Maybe it's possible to add the "Null Reference Exception" in the Exceptions
dialog (Debug>Exceptions) - there's a nice button there to do it , but how ?

The frustration of course is that whilst I'm perfectly happy to ignore
exceptions that supposedly can't hurt my exe, I've got no guarantee that
once my app. gets out there in the real world, someone will run it on a
system where this apparently innocuous error turns into a show stopper.

Ah well, let's see what v2 has to offer and thanks again for replying.


Jon
 
Back
Top