Overview
Features
Download
Documentation
Community
Add-Ons & Services

TCP Server

Please post support and help requests here.

TCP Server

Postby merdem » 09 Mar 2007, 22:45

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...



merdem
 
Posts: 14
Joined: 19 Jul 2006, 22:28

Re: TCP Server

Postby guenter » 12 Mar 2007, 15:36

I cannot reproduce the problem with VS 2005 (without SP1).

guenter
 
Posts: 1135
Joined: 11 Jul 2006, 16:27
Location: Austria

Re: TCP Server

Postby guenter » 12 Mar 2007, 18:18

I have now tested with SP1 installed and am still not able to reproduce the error.

BTW: is your executable really called Oracle.exe? ;-)

guenter
 
Posts: 1135
Joined: 11 Jul 2006, 16:27
Location: Austria

Re: TCP Server

Postby merdem » 13 Mar 2007, 16:17

Thank you Guenter...It was my fault (as expected :-)...

The same lesson again: Do not mix static and dynamic libraries :-)))

...and yes it is called Oracle...Big name, small program (:biggrin:)

Murat
merdem
 
Posts: 14
Joined: 19 Jul 2006, 22:28


Return to Support

Who is online

Users browsing this forum: No registered users and 3 guests

cron