> So what kind of mapping are you looking for? > Which relationship do you need to preserve?
A component has allocated a number of message numbers (the messages are now identified by variables since a lot of components share the same hidden window). When the component is attached to another thread, any message still in the old message queue has to be pulled out and posted into the new queue. Before being posted to the new queue, the old messages numbers have to be mapped to the new ones. See TCustomWSocket.AllocateMsgHandlers for reference. I think we don't have enough information saved to do this mapping. Probably TIcsWndHandler.AllocateMsgHandler sould take one more argument to permit the mapping. This argument would be saved in TIcsWndHandler.FMsgMap so that it is available afterward to do the mapping. -- [EMAIL PROTECTED] http://www.overbyte.be ----- Original Message ----- From: "Stadin, Benjamin" <[EMAIL PROTECTED]> To: <email@example.com> Sent: Monday, June 12, 2006 8:58 PM Subject: Re: [twsocket] Enhancements for Thread Attach/Detach methods > Francois PIETTE schrieb: >> >> >> I do not see how to map those numbers on a low level easily :( any > idea? >> > >> > I'm trying to follow. How do the old and the new message numbers >> > differ? >> > What do the old and new numbers look like, can you maybe give a small >> > example list? >> >> There can be no relation at all between the two sets ! Of course with > simple >> case, the two sets will looks the same. But it will not be the case when >> component are destroyed and other created, specially when there are > several >> component types involeved, having each one a different number of message >> numbers. > > So what kind of mapping are you looking for? Which relationship do you > need > to preserve? > -- > To unsubscribe or change your settings for TWSocket mailing list > please goto http://www.elists.org/mailman/listinfo/twsocket > Visit our website at http://www.overbyte.be -- To unsubscribe or change your settings for TWSocket mailing list please goto http://www.elists.org/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be