ROOT session does not end

Dear Rooters,

With ROOT 5.26 the next problem arose. When the code using ROOT GUI started from the Visual Studio 2008 after it’s finish the CMD screen (ROOT sesson) is not deleted. Moreover it could not be closed from the Windows Task Manager and it prevents to the system rebooting. The main code is usual and it worked with the previous ROOT versions.

#include <TApplication.h>
#include <TGClient.h>
#include “GS2d_MainFrame.h”
#include “GSA_Parm.h”
#include “GS_Calibration.h”

Parm P;
GS_Calibration calib;
ofstream eout(“RMatr.err”);

int main(int argc, char **argv)
{
TApplication theApp(“theApp”, &argc, argv);
gSystem->Load(“libRIO.dll”);
gSystem->Load(“libHist.dll”);
GS2d_MainFrame theMainFrame(gClient->GetRoot()
,gClient->GetDisplayWidth()
,gClient->GetDisplayHeight()-50);
theApp.Run();
return 0;
}

Thanks in advance.
Andrey

Hi Andrey,

I would need more details to understand what is the problem.
What are your compiler flags? How do you terminate your application? What is your GS2d_MainFrame class doing?
If GS2d_MainFrame inherits from a TGMainFrame, could you try to add the following line in your main():

theMainFrame.Connect("CloseWindow()", "TApplication", gApplication, "Terminate()");
And tell me if you still have the problem, please?

Cheers, Bertrand.