Home All Groups Group Topic Archive Search About
Author
25 Mar 2005 1:19 PM
MacDermott
Trying to debug a vb.NET application, I set a breakpoint, then try to move
forward from there.
While this has worked in the past (I often did this back in VB6.0), now most
often when I try to move forward, I get a NullReference exception, with the
green arrowhead at the beginning of the code for the form.
    How can I debug this?

    = Turtle

Author
25 Mar 2005 3:59 PM
Cor Ligthert
Mac,

Normally it should go with F11 (except when there is an error of course).
And a NullReference exception is probably one of the most you will see in
the beginning.

Therefore show a piece of code when that happens.

Cor
Author
26 Mar 2005 2:04 AM
MacDermott
Thanks for writing back, Cor!

In VB6.0, I could usually get the code to break where the error is; that
made debugging much easier.
I've often been able to do that in VB.Net as well, but in this particular
application, it seems that I'm more and more frequently seeing that when it
breaks (even though code has clearly been running before the error), the
green arrowhead shows at the beginning of the form module.   What causes
this?  How can I tell where the error is?

- Turtle

Show quoteHide quote
"Cor Ligthert" <notmyfirstn***@planet.nl> wrote in message
news:eYjblOVMFHA.1392@TK2MSFTNGP10.phx.gbl...
> Mac,
>
> Normally it should go with F11 (except when there is an error of course).
> And a NullReference exception is probably one of the most you will see in
> the beginning.
>
> Therefore show a piece of code when that happens.
>
> Cor
>
>
Author
26 Mar 2005 10:57 AM
Cor Ligthert
Mac,

As I wrote before, can you show a piece of code where that happens, it is
not clear for me. I cannot remember me that I ever saw the behaviour that
you describe.

Cor