Normally if there's an error in my code the debugger stops at that error and tells me about it. But a recent null reference error in a sub called from the Paint event of a Picture box did not cause the debugger to stop execution but to abort the drawing and colour the picturebox white with a red border and red diagonal lines. The following message appeared in the Immediate Window:
"A first chance exception of type 'System.NullReferenceException' occurred in Res Ipsa.exe"
This really threw me as I originally thought that somehow I was drawing this pattern. But anyway does anyone know why it did this rather than stop execution in the normal way?
"A first chance exception of type 'System.NullReferenceException' occurred in Res Ipsa.exe"
This really threw me as I originally thought that somehow I was drawing this pattern. But anyway does anyone know why it did this rather than stop execution in the normal way?