SerialPort event not firing after ShowDialog - C#

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?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top