.net - Control query is not correct in DotNet -


please help, receive error "cannot invoke because object nothing". i've added query ask if object nothing. visual studio still goes routine.

form nothing

private withevents frm frmfullscreen   private sub updateimageinguiasync(byval bm system.drawing.bitmap)           if me.frm.invokerequired = true             dim dl new bitmapdelegate(addressof updateimageinguiguithread)             if me.frm isnot nothing me.frm.invoke(dl, bm)         else             call me.updateimageinguiguithread(bm)         end if      end sub 

any idea how fix this?

regards

is possible form disposing?

if so, i'd wrap entire if block in try/catch.


Comments

Popular posts from this blog

c# - How to set Z index when using WPF DrawingContext? -

razor - Is this a bug in WebMatrix PageData? -

visual c++ - Using relative values in array sorting ( asm ) -