EldoS | Feel safer!

Software components for data protection, secure storage and transfer

Pause message processing

Also by EldoS: Solid File System
A virtual file system that offers a feature-rich storage for application documents and data with built-in compression and encryption.
Posted: 07/30/2012 07:56:17
by Wikus Cornelius (Basic support level)
Joined: 07/30/2012
Posts: 1


Is there a way to temporary pause the processing of messages without losing any messages? I have tried disabling the message handler, but the OnUnhandledMessage event on the queue still fires. I would like to stop message processing and let the queue build up until the processing is started again.

We have processes posting log messages to a central logging process. The central logging process writes the log message to file. I want to pause the processing of messages in the logging process to backup and clear the log files without losing any of the log messages.

I am using the Delphi version of msgconnect.

Thank you,

Posted: 07/30/2012 08:17:57
by Eugene Mayevski (EldoS Corp.)

Processing is done when you call GetMessages or DispatchMessages, so not calling them will collect them in the incoming queue. Note that if you use SendMessageTimeout or SendMessageTimeoutCallback function, it can fail if the message processing is stopped.

Sincerely yours
Eugene Mayevski



Topic viewed 2870 times

Number of guests: 1, registered members: 0, in total hidden: 0


Back to top

As of July 15, 2016 EldoS Corporation will operate as a division of /n software inc. For more information, please read the announcement.

Got it!