> I already modified the client in a way that it explicitely polls Windows > messages for 50 sec. even, but that doesn't help.
A valid message pump is essential for TWSocket to work. When you build a DLL, you depends on the host application except if you put all socket stuff in a worked thread with his how message pump. I suggest you do that. -- francois.pie...@overbyte.be The author of the freeware multi-tier middleware MidWare The author of the freeware Internet Component Suite (ICS) http://www.overbyte.be ----- Original Message ----- From: "Markus Humm" <markus.h...@freenet.de> To: <twsocket@elists.org> Sent: Wednesday, May 20, 2009 8:12 PM Subject: [twsocket] TWSocket doesn't always send my data? > Hello, > > I'm using V5's TWSocket in D2007 and have a strange problem which > doesn't always occur but approx. 2-3 times out of 10 tries. > > I have two applications running on the same PC "connected" via a > TWSocket TCP connection (127.0.0.1). The client side is in a COM > automation DLL (I think single threaded appartment model) and the server > side is in a separate exe file. > > My problem is now, that the client can send a certain message (line mode > is used) to the server to tell the server that the client is terminating > and that the server should terminate as well. In those cases where this > doesn't work, the client calls the send method but the server doesn't > get anything! No receive! > > I already modified the client in a way that it explicitely polls Windows > messages for 50 sec. even, but that doesn't help. > > After sending and this messagepolling I do a shutdown and close or abort > on the client. > > I'm clueless now What elese can I do? Which tools can I use to > investigate further? Wireshark won't work afaik as it's a 127.0.0.1 > connection. > > Greetings > > Markus > -- > To unsubscribe or change your settings for TWSocket mailing list > please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket > Visit our website at http://www.overbyte.be -- To unsubscribe or change your settings for TWSocket mailing list please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be