[ROOT] Terminating gdk based root app: dos box

From: Ed Oltman (eoltman@imago.com)
Date: Thu Aug 28 2003 - 17:07:10 MEST


Hello, 
 I have been using the win32 version of root for the past 2 years and am
switching over to the gdk version - I am using 3.05/7 on Win2k. The
application is launched with a shortcut on the user's desktop which does the
following:

%rootsys%\bin\root.exe "%rootsys%\main.cpp"


Here's my main.cpp file:

class CManage;
void main()
{
	gROOT->Reset();
	gSystem->Load("analysis.dll");
	CManage *m = new CManage();
}

My application is driven, for most users, via TControlBar buttons that are
displayed when CManage is instantiated. One button, 
"Exit" is used to terminate the application - I've tried exit(0) and
TApplication->Terminate() - both cause my TControlBars and TCanvas windows
to go away, but unlike the Win32 version, the DOS box remains and is dead.
What is the proper way to exit my application?
Thanks!

Note: If I run the application directly from a dos box, e.g.

 root main.cpp

then the the Exit button does work - the dos box is not dead.  


Ed Oltman





This archive was generated by hypermail 2b29 : Thu Jan 01 2004 - 17:50:15 MET