L
loris128
Hi
I'm writing a simple application using a Webclient class to get
informations
from the internet.
My problem is that I am randomly getting a
'System.NullReferenceException' in system.dll with no apparent reason
and *only in debug mode*.
I'm using Visual Studio 2003, with the .net framework v1.1.4322
Steps to reproduce the error:
- Create a new windows application project containing a form and a
button.
- On the button click event instantiate a new webclient and call the
OpenRead method.
- run the application in debug, click the button and DON'T CLOSE your
form
- do anything for a pair of minutes, take a coffee, check your mail...
- a System.NullReferenceException is cast!
Could it be a bug in the garbage collector while in debug?
Thanks
I'm writing a simple application using a Webclient class to get
informations
from the internet.
My problem is that I am randomly getting a
'System.NullReferenceException' in system.dll with no apparent reason
and *only in debug mode*.
I'm using Visual Studio 2003, with the .net framework v1.1.4322
Steps to reproduce the error:
- Create a new windows application project containing a form and a
button.
- On the button click event instantiate a new webclient and call the
OpenRead method.
- run the application in debug, click the button and DON'T CLOSE your
form
- do anything for a pair of minutes, take a coffee, check your mail...
- a System.NullReferenceException is cast!
Could it be a bug in the garbage collector while in debug?
Thanks