On Sun, 17 Aug 2003 01:17:08 +0100, "Wim Hollebrandse"
<wimATwimdows.com> wrote:
In addition to what Jon's mentioned - it might be worth debugging your code
and see on what line you are actually getting this error. Then, all you do
is print the values of the objects used on that line in the Command Window,
and you know you are trying to use a null object as if it was a properly
referenced object.
The error message is clear as crystal.
Cheers,
Wim Hollebrandse
I must be running a different program!
I am more used to Borland compilers, when they pop up with an error
message I press 'F1' and it takes me to an explanation of the error -
which I find useful.
In VS7 pressing 'F1' tells me there has been an error, well I know
that, what I want is information on avoiding it.
Searching for 'NullReferenceException' as suggested by Jon leads to a
not very exciting explanation of how to construct a
NullReferenceException object, I don't want to thanks, I just got one
automagically!
The meaning of the error looks clear on the face of it but when
calling the Win API, as I said earlier, it is this error that gets
thrown up if a parameter is wrong, and that is not very helpful.
Anyway I doubt if this helps the original writer who by now has
probably analysed the problem line, fixed it and is writing his next
program :-)