Hello again,
I am finally starting to use WCL(v6.14.6.0 VCL) for another project and am running into a problem that I hope you can help with. The internal WndProc that calls DoData in TwclCustomConnection is not being called when the WCL_WM_DATA message is posted from the while loop in TwclCustomClientConnection.MicrosoftThread.
The WCL_WM_CONNECTED message that is sent before the while loop IS processed by the WndProc, but the WCL_WM_DATA does not get to the WndProc. The PostMessageW() with the WCL_WM_DATA does get called with the same window handle as the WCL_WM_CONNECTED PostMessageW call, but it does not seem to make it to the TwclCustomConnection.WndProc. In fact, no WCL_WM_DISCONNECTED is received by the WndProc either (but the data message is my main concern right now, since I cannot receive responses without it). Connecting again will Get another WCL_WM_CONNECTED message in the WndProc.
Another item that might be helpful (or not) is that when the debugger breaks at the PostMessageW within the MicrosoftThread procedure's while loop all the variables resolve to "Inaccessible value". But this is true when the messages are being processed or not. (The WCL_WM_DATA messages are never getting to the WndProc.)
Delphi7 on Win7, 64-bit; compiling to 32-bit target (since it is Delphi7) and running on same machine.
Thank you. I hope I have given enough information.
Jerry