Kbase P127282: Using SendMessageA API on hidden window causes crash during QUIT
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  11/29/2007 |
|
Status: Unverified
FACT(s) (Environment):
Windows
OpenEdge 10.x
SYMPTOM(s):
Using SendMessageA Windows API within 4GL code
Message sent to window which is not visible
QUIT statement is executed
Session crashes
CAUSE:
The exact cause is unknown at the time of writing.
The probable cause is that sending the WM_SETREDRAW message sent to a hidden window somehow triggers a corruption in memory, which is not detected until the session ends and the memory is cleaned up. This has not been verified.
FIX:
Don't call the SendMessageA API this way until at least one window is visible.