Click to See Complete Forum and Search --> : CAsyncSocket and Release


April 28th, 1999, 07:12 PM
Hi,

I am trying to connect my graphic engine to another PC - ( Both running NT)


I have two classes each derived from CAsyncSocket - CClient and on CServer.
the Server listens to a port and after Accepting a connection it will create a CClient Class and do the following thing:



CAsyncSocket * Connection = new CClient(this);

if( !m_pServer->Accept( *Connection ) ) {
AfxMessageBox("Could Not Accept Connection");
}
...

this works very fine in the debug version of the project.

I get a error in the Relase version of the project which comes from
Socket Notification Sink
The instruction at "..." refered memory at "..". The memory could not be read.

The debug takes me to:

void* CMapPtrToPtr::GetValueAt(void* key) const{
...

}

I been thinking it might be due to the optimization that may cause this but I am not sure.

Please let me know what you guys think ?

Thanks in Advance.

ramahbou@ucsd.edu
- Ramtin Mahboubian