EldoS | Feel safer!

Software components for data protection, secure storage and transfer

Pause message processing

Also by EldoS: CallbackProcess
A component to control process creation and termination in Windows and .NET applications.
#20928
Posted: 07/30/2012 07:56:17
by Wikus Cornelius (Basic support level)
Joined: 07/30/2012
Posts: 1

Hi,

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,

Wikus
#20929
Posted: 07/30/2012 08:17:57
by Eugene Mayevski (Team)

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

Reply

Statistics

Topic viewed 3982 times

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




|

Back to top

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

Got it!