Consultor Eletrônico



Kbase P180157: Application using .NET SerialPort class hangs when displaying message box
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   27/01/2011
Status: Unverified

SYMPTOM(s):

Application using .NET SerialPort class hangs when displaying message box

Similar behavior in applications using timer controls.

FACT(s) (Environment):

Using System.IO.Ports.SerialPort class from the Microsoft .NET framework.
SerialPort.DataReceived event handler contains MESSAGE ... VIEW-AS ALERT-BOX statement.
Windows
OpenEdge 10.2x
OpenEdge Category: Language (4GL/ABL)

CAUSE:

This is expected behavior. OpenEdge does not support multi-threading. System.IO.Ports.SerialPort is a multi-threaded control. Displaying a message while processing the DataReceived event is not expected to work because the DataReceived event comes in on a second thread, but the message box is displayed on the original thread with the UI, causing the hang.

FIX:

None at this time.