Message: How to get the error code from the last failed UI command Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Question How to get the error code from the last failed UI command 

Forum: (Graphical) User Interfaces
Date: Apr 03, 00:11
From: Vasilis Vlachoudis <Vasilis Vlachoudis>

Hi all,

In the application I am executing a macro as
		G4String command = "/control/execute ";
		int rc = UI->ApplyCommand(command+macrofile);
		G4cout << "RC=" << rc << G4endl;
however when the macro contains a wrong command it dumps a
message on the G4cout like
***** Illegal parameter (0) </gps/particle proton-error> *****

***** Batch is interrupted!! ***** RC=0

but the RC is 0. How can I get an error code so my application will know that the execution was aborted?

Many thanks in advance

Vasilis

 Add Message Add Message
to: "How to get the error code from the last failed UI command"

 Subscribe Subscribe

This site runs SLAC HyperNews version 1.11-slac-98, derived from the original HyperNews


[ Geant 4 Home | Geant 4 HyperNews | Search | Request New Forum | Feedback ]