Re: [twsocket] ICS Wnd Control - Possible bug

2010-08-18 Thread Arno Garrels
Arno Garrels wrote: > Eric, > > I guess it helps to remove all pending messages with the given ID > from the queue when the message ID is unregistered. > > One could do that either in custom code or maybe it should > be added in TIcsWndHandler.UnregisterMessage as below? Previous code did remove

Re: [twsocket] ICS Wnd Control - Possible bug

2010-08-18 Thread Eric Fleming Bonilha
Msg := 0; while PeekMessage(LMsg, FHandle, Msg, Msg, PM_REMOVE) do {loop}; // <== added if FMsgCnt = 0 then DeallocateHWnd; end; Just a little correction while PeekMessage(LMsg, FHandle, Msg, Msg, PM_REMOVE) do {loop}; // <== added Msg := 0; Or else you will pass 0 t

Re: [twsocket] ICS Wnd Control - Possible bug

2010-08-18 Thread Eric Fleming Bonilha
-- From: "Arno Garrels" Sent: Wednesday, August 18, 2010 11:43 AM To: "ICS support mailing" Subject: Re: [twsocket] ICS Wnd Control - Possible bug Eric, I guess it helps to remove all pending messages with the given ID fro

Re: [twsocket] ICS Wnd Control - Possible bug

2010-08-18 Thread Arno Garrels
Eric, I guess it helps to remove all pending messages with the given ID from the queue when the message ID is unregistered. One could do that either in custom code or maybe it should be added in TIcsWndHandler.UnregisterMessage as below? procedure TIcsWndHandler.UnregisterMessage(var Msg: UINT);

[twsocket] ICS Wnd Control - Possible bug

2010-08-17 Thread Eric Fleming Bonilha
Hello all While I was trying to use TICSWndControl as base class to share handles for message and consume less OS resources I ran into a very strange problem, that took me some nights of sleep, after a lot of researching I have found a problem in WndControl shared handles implementation, and I