Shishir Pandey01

Hi

I have a form which contains a button. On click of the button, some processing that needs to be done. But, when I click the button I get a message saying "Object Reference not set to an intansce of an Object". When I try to debug it, it takes me to the disassembly because the place where the error occured was not present in the source code.

Can some one tell what could be the possible reason




Re: Windows Forms General Object Reference not set to an intansce of an Object

Andrej Tozon

Hi,

can you show us some code you put in your button's Click event handler Or is this happening at design time

Andrej






Re: Windows Forms General Object Reference not set to an intansce of an Object

Shishir Pandey01

Hi Andrej

I just solved the problem. I had actually set the project configuration to "Release" instead of "Debug".

Thanks
Shishir