Problem 2095

Summary: G4VSteppingVerbose static instance variable is not cleared
Product: Geant4 Reporter: andrey.nakin
Component: runAssignee: asai
Status: RESOLVED FIXED    
Severity: normal CC: andrey.nakin
Priority: P4    
Version: 10.4   
Hardware: All   
OS: All   

Description andrey.nakin 2018-10-08 17:40:39 CEST
G4VSteppingVerbose is a singleton class that holds its instance in G4VSteppingVerbose::fInstance static field. This field is initialized in G4VSteppingVerbose::SetManager method but does not seem to be cleared anywhere.

Suggested fix:

File: G4VSteppingVerbose.cc
Method: G4VSteppingVerbose::~G4VSteppingVerbose

G4VSteppingVerbose::~G4VSteppingVerbose(){
  fInstance = 0; // <-- this is the patch
}
Comment 1 Gabriele Cosmo 2018-10-12 11:16:29 CEST
Thanks. This is now fixed in the development version and will be available in the next release.