views:

112

answers:

2

Hi !

I'm reading a foreign source code and there occurs sometimes a

NullException 

by Drag'n'Drop operation. The problem is, that all parameters are never null, so I'd like to be able to debug this method somehow.

Any ideas ?

A: 

OK !

It seems that the Call Stack in Message Details helps to locate the problem. Anyways.. for me it's sufficient.

PaN1C_Showt1Me
+1  A: 

Any exception thrown while a drag+drop is in progress is swallowed by a catch all handler in DoDragDrop. You can see the first-chance exception in the Output window but that's all. To get the debugger to stop use Debug + Exceptions, tick the Thrown checkbox on CLR exceptions.

Hans Passant
Wonderful ! Thank you
PaN1C_Showt1Me