Hi !
Im using CSocket with CArchive to serialise derivatives of CObject. In my override of OnReceive I serialise my derivatives and call
CArchive::IsBufferEmpty() to assertain if I can return from OnReceive. However, sometimes IsBufferEmpty() returns TRUE but
I m sure there is data to be read. In this case I expect another OnReceive notification but it nver comes.
<br/>
Im sure the data is there because if I insert a breakpoint in OnReceive after IsBufferEmpty() returns TRUE, I get another OnReceive after continuing from that breakpoint ( having also halted any further sends from the external socket with a breakpoint ).
After deleting this breakpoint I intermittently dont get the OnReceive... even with the breakpoint still inserted in the external sockets app
<br/>
any thoughts would be greatly appreciated.
View the full article
Im using CSocket with CArchive to serialise derivatives of CObject. In my override of OnReceive I serialise my derivatives and call
CArchive::IsBufferEmpty() to assertain if I can return from OnReceive. However, sometimes IsBufferEmpty() returns TRUE but
I m sure there is data to be read. In this case I expect another OnReceive notification but it nver comes.
<br/>
Im sure the data is there because if I insert a breakpoint in OnReceive after IsBufferEmpty() returns TRUE, I get another OnReceive after continuing from that breakpoint ( having also halted any further sends from the external socket with a breakpoint ).
After deleting this breakpoint I intermittently dont get the OnReceive... even with the breakpoint still inserted in the external sockets app
<br/>
any thoughts would be greatly appreciated.
View the full article