Vote UpVote

Windows Message Loop and Application Reentrancy

The Wiert Corner – One of the things you must be careful with is reentrancy in your application through a message loop. The most obvious way is Application.ProcessMessages: it will loop until all messages from the Windows message queue are processed, weather your application is ready for them or not. A less obvious way is because of modal dialogs or forms. They have their own message loop which might cause global reentrancy in your application (for instance through TTimer objects). That was the case for this problem:┬ástack overflow with repeated DispatchMessageW in the call stack. A couple of ways to try to ...
Favorite? Off-Topic? jpluimers @ 2013-05-21 07:00


Visits: 959
Votes: 1
Favorites: 0
Off-Topic: 0

Visits by Source

User Actions

Users who voted for this posting

Contact us to advertise on DelphiFeeds.com

Community Links

Torry Firebird News


Please login or register to use this functionality.
(click on this box to dismiss)