> hm, curious. Now it works if I have the receiving component statically on > the data module > and have it Multihreaded:=true; and simply process messages like that > > while GetMessage(MsgRec, 0, 0, 0) do begin > TranslateMessage(MsgRec); > DispatchMessage(MsgRec)
You have all events handled in the context of the thread that created the datamodule. That is fine if the thread has a working message pump (probably not if you DLL is called from a console mode program). And you'll have problem if you access the TWSocket from another thread. > Is this generally okay? Or is it coincidence that it works now? So it is much more a coincidence that it works now. -- [EMAIL PROTECTED] 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