Malfunction
Junior Contributor
I'm getting a System.NullReferenceException in the following line of code:
this.myEvent(this, e);
In the debugger window "this" and "e" are not null in fact they are what they're supposed to be: this is of the type myControl and e is of the typeMouseEventArgs - a messageBox before that line of code confirms that.
I even removed the parameters from the delegate but
this.myEvent(); throws the same exception.
I checked every field in the debugger window and still couldn't find the null reference.
this.myEvent(this, e);
In the debugger window "this" and "e" are not null in fact they are what they're supposed to be: this is of the type myControl and e is of the typeMouseEventArgs - a messageBox before that line of code confirms that.
I even removed the parameters from the delegate but
this.myEvent(); throws the same exception.
I checked every field in the debugger window and still couldn't find the null reference.