Re: Threading and Serial port issue
- From: Derek <derek0402@xxxxxxxxxxx>
- Date: Tue, 04 Apr 2006 17:11:59 -0700
Sorry about "fails". What I meant to say was that the event handler for
the data received (Port.CommEvent) never gets fired. No exception is
thrown, it just sits in the loop. The port is open and the device
initializes fine and there should be input The exact same code works
fine when debugging from Visual Studio on the device but when I deploy
it on to the device and run it this eror shows up.
Thanks for any help
Derek
"Paul G. Tobey [eMVP]" <p space tobey no spam AT no instrument no spam
DOT com> wrote in news:uIjn1$DWGHA.4924@xxxxxxxxxxxxxxxxxxxx:
"fails" is pretty useless information. If it generates an exception,
what type and what string does the exception provide to indicate the
problem is? At a guess, I'd say that you are fooling with user
interface components from your thread, which is not the UI thread (and
those operations are therefore illegal).
Paul T.
.
- References:
- Threading and Serial port issue
- From: Derek
- Re: Threading and Serial port issue
- From: Paul G. Tobey [eMVP]
- Threading and Serial port issue
- Prev by Date: Re: VS2005 - Console CAB Wizard?
- Next by Date: Play wav using Playsound from coredll.dll
- Previous by thread: Re: Threading and Serial port issue
- Next by thread: Re: Threading and Serial port issue
- Index(es):
Relevant Pages
|