If Remote Desktop minimize or close c# form application stopped -


i wrote program using c# form application, using clipboard , capture screen. program running remote desktop (mstsc). if close remote desktop window (not disconnect close window or minimize window) program stopping.

i didn't find solution. can me please

error:stack trac location: system.drawing.graphics.copyfromscreen(int32 sourcex, int32 sourcey, int32 destinationx, int32 destinationy, size blockregionsize)

error:message handle invalid

your program stops because not able take screen shot (which exception shows).

this because, when on remote session there not screen, screen in fact screen opened session (your screen), when close or minimize mstsc window remote session not have screen anymore.

try handle exception application not finish (try.catch block instance).


Comments

Popular posts from this blog

blackberry 10 - how to add multiple markers on the google map just by url? -

php - guestbook returning database data to flash -

delphi - Dynamic file type icon -