Forum Post: RE: prowin32 hungs unexpected

Status
Not open for further replies.
M

Matt Gilarde

Guest
James Palmer Interesting you don't recommend it. What is your solution to ghosting then? If a query takes a certain amount of time to run then you get ghosting, and the users kill the process. Ghosting occurs when a process doesn't look at the message queue for more than five seconds. PROCESS EVENTS looks at the message queue, so calling it often enough avoids ghosting. I would only use DisableProcessWindowsGhosting if I couldn't use PROCESS EVENTS. If you want to avoid PROCESS EVENTS you could call the PeekMessage API instead to let WIndows know that you're still alive. Here's an article about that approach (not OpenEdge-centric, but still applicable): Telling Windows we’re not really “Not Responding” DisableProcessWindowsGhosting would be my last resort.

Continue reading...
 
Status
Not open for further replies.
Top