Hello all!
I have a very simple derived class MyTCPServerConnection from TCPServerConnection where I only implement the run() method (just for testing and reproducing the problem I will talk about).
It is as follows:
^void MyTCPServerConnection::run() {
cout << "Connection accepted..." << endl;
DialogSocket* d_socket = new DialogSocket( socket() );
delete d_socket;
}^
When I use TCPServer and a connection gets accepted, as soon as d_socket is deleted, Visual Studio 2005 SP 1 gives the following error:
^
Windows has triggered a breakpoint in Oracle.exe.
This may be due to a corruption of the heap, and indicates a bug in Oracle.exe or any of the DLLs it has loaded.
The output window may have more diagnostic information
^
It is abviuos that something is messing up the heap.
Any ideas? Help?
Thnx...





