Message: creation of a LogFile Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

None creation of a LogFile 

Keywords: logfile
Forum: Documentation and Examples
Date: 28 Feb, 2003
From: roccaz <>

Hi everyone,

I've tried to have the output of a session in a logfile. For that I've used the method described in section 7.2.4. The problem is that when i exectute my program, i have a segmentation fault just after the call of the macro "vis.mac". Here is a part of my :

//Initialize G4 kernel

  //get the pointer to the User Interface manager 
  G4UImanager * UI = G4UImanager::GetUIpointer();  

    // Define (G)UI terminal for interactive mode  
      // G4UIterminal is a (dumb) terminal.
       G4UIsession * session = 0;

       session=new SimpleGeUIsession();

       //#ifdef G4UI_USE_TCSH
       //session = new G4UIterminal(new G4UItcsh);      
       //session = new G4UIterminal();

      // UI->ApplyCommand("/control/execute rndm.mac");
      UI->ApplyCommand("/control/execute vis.mac"); 
      delete session;

    // Batch mode
      G4String command = "/control/execute ";
      G4String fileName = argv[1];

#ifdef G4VIS_USE
  delete visManager;
  delete runManager;

return 0; }

Many thanks to those who will try to help me

Inline Depth:
 1 1
 All All
Outline Depth:
 1 1
 2 2
 All All
Add message: (add)

 Add Message Add Message
to: "creation of a LogFile"

 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 ]