Re: Threading and Serial port issue



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.


.



Relevant Pages

  • Re: Threading and Serial port issue
    ... "fails" is pretty useless information. ... If it generates an exception, ... I then sit in a loop waiting for data to arrive. ... private void SetupBoard_Click ...
    (microsoft.public.dotnet.framework.compactframework)
  • Re: Strange error when app starts
    ... installed correctly via the installer ... machines and until recently they all worked perfectly. ... updated the application to a new version one of the machines fails ... unhandled exception when the application starts. ...
    (microsoft.public.dotnet.framework.windowsforms)
  • Re: TStringGrid
    ... No - possibly it should be WriteBuffer for both, so that an exception ... is thrown if it fails. ... I think that code was written in dubious mode ...
    (alt.comp.lang.borland-delphi)
  • Re: Coding inside the debugger
    ... but why isn't the test written so that the reason it fails is ... If something fails in tests like these, ... public void testCreateWithDefaultthrows Exception { ... Ghostworld world = worldWithClass; ...
    (comp.object)
  • MSProject 2002 Addin : Exception in SetTaskField
    ... In this event handler I want to set the value of the 'Text1' custom ... When I use this code I have the following exception which is thrown: ... But I want to use the SetTaskField method because the custom field name ...
    (microsoft.public.office.developer.com.add_ins)

Quantcast