Re: EXE terminates automatically.
- From: Durga <Durga@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Thu, 22 Jun 2006 07:44:01 -0700
Thank you for your response,Tom.
1. Application doesnt have "exit" statements.
2. Handled exceptions are also fine.
3. Memory leaks: I am guessing here. I have to find out all leaks. Actually
it is developed by somebody else. I have to find out memory leaks. Is there
any easiet way to find out leaks using tools or libraries?
--
Thanks & Regards,
siri.
"Tom Serface" wrote:
There are lots of reasons your program could terminate automatically..
Unhandled exceptions, someone calling exit() in a subroutine, etc.
If you compile in debug mode you'll get more information about both the
termination (if it's an unhandled exception) or memory leaks (in the output
window).
Tom
"Durga" <Durga@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:0A3D466B-938D-45D1-8928-4CAFA30B5899@xxxxxxxxxxxxxxxx
Hi all,
I have developed one application with support of "Win32 console
application and MFC". I used sockets(OpenSSL), threads (are created using
AfxBeginThread),Databases.
It works fine for some connections.
But my application is terminating automatically. I couldn't simulate
this.
What may be the problem?
How do I find memory leaks? Any freewares available in the net?
Please suggest me if available.
In which scenarios, exe applications terminates automatically?
Please give me your ideas.
I tried to find memory leaks using below code snippet. But I didnt get
memory leaks.
It is giving always memory leaks.
code:
#ifdef _DEBUG
CMemoryState oldMemState, newMemState, diffMemState;
oldMemState.Checkpoint();
#endif
#ifdef _DEBUG
newMemState.Checkpoint();
if( diffMemState.Difference( oldMemState, newMemState ) )
{
//TRACE( "Memory leaked!\n" );
AfxMessageBox(" Memory leaked!\n");
}
#endif
Are there any limitations with sockets? I am load balance also.
My application terminates automatically. why?
sometimes it is giving, "Abnormal program termination" dialog box.
- Follow-Ups:
- Re: EXE terminates automatically.
- From: Tom Serface
- Re: EXE terminates automatically.
- References:
- Re: EXE terminates automatically.
- From: Tom Serface
- Re: EXE terminates automatically.
- Prev by Date: Re: How to Create A Shared Folder in VC
- Next by Date: Re: EXE terminates automatically.
- Previous by thread: Re: EXE terminates automatically.
- Next by thread: Re: EXE terminates automatically.
- Index(es):
Relevant Pages
|