S
Shmuel Naaman
Help please, I created a win form app with a serial port component, if
the user disconnect the cable without closing the port first no
exception is throwing but when the user close the form I get an
exception that I cant catch – unauthorized exception .I tried to use a
timer that checks the .IsOpend and closes the port but no lock – I
steel get the same error.
I tried to Dispose/ set to null/ create a back thred – nothing yet.
Is it something with the properties of the serial port?
Can someone send a working sample of a form that I can disconnect the
cable and still close the form nicely?
thanks
the user disconnect the cable without closing the port first no
exception is throwing but when the user close the form I get an
exception that I cant catch – unauthorized exception .I tried to use a
timer that checks the .IsOpend and closes the port but no lock – I
steel get the same error.
I tried to Dispose/ set to null/ create a back thred – nothing yet.
Is it something with the properties of the serial port?
Can someone send a working sample of a form that I can disconnect the
cable and still close the form nicely?
thanks