SerialPort event not firing after ShowDialog - C#

  • Thread starter Thread starter SoftCalc
  • Start date Start date
S

SoftCalc

I have a C# application that uses the SerialPort class. The SerialPort
is being used for an external input device (a Disto).

It works perfectly except when a modal dialog pops up. When a modal
window is up the serial port events don't fire. The odd thing is they
aren't eaten, they appear to be on hold. When the modal window is
closed the events suddenly fire.

Since the serial port is being used for an input device I want the
events to fire all the time.

My understanding is the serial events happen on a secondary thread,
and not the main thread. Why are the events being held? Anyone have a
clue?
 
Back
Top