Re: [ROOT] Destructors, stack objects

From: Fons Rademakers (Fons.Rademakers@cern.ch)
Date: Mon Sep 23 2002 - 10:11:19 MEST


Terminate() calls exit(), see TUnixSystem::Exit().

-- Fons


On Mon, 2002-09-23 at 07:53, Timur Pocheptsoff wrote:
> Hi.
> I use my own house-breed debug new/delete and I have a problem.
> 
> In my programm I have some stack objects
> 
> int main(){
> 
> 	FiendFrame myFrame(...);//some //parameters, stack object 
> 	TApplication theApp(...);//some //parameters
> 	theApp->Run();
> 
> 	return 0;
> }
> 
> In FiendFrame::CloseWindow I call Terminate(0) (gApplication->Terminate(0);)
> and in my memleaks.log file there are some strings, which show me, that myFrame destructor wasn't called. What does Terminate(0) do?
-- 
Org:    CERN, European Laboratory for Particle Physics.
Mail:   1211 Geneve 23, Switzerland
E-Mail: Fons.Rademakers@cern.ch              Phone: +41 22 7679248
WWW:    http://root.cern.ch/~rdm/            Fax:   +41 22 7679480



This archive was generated by hypermail 2b29 : Sat Jan 04 2003 - 23:51:10 MET