Problem 2095 - G4VSteppingVerbose static instance variable is not cleared
Summary: G4VSteppingVerbose static instance variable is not cleared
Status: RESOLVED FIXED
Alias: None
Product: Geant4
Classification: Unclassified
Component: run (show other problems)
Version: 10.4
Hardware: All All
: P4 normal
Assignee: asai
URL:
Depends on:
Blocks:
 
Reported: 2018-10-08 17:40 CEST by andrey.nakin
Modified: 2018-10-12 11:16 CEST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this problem.
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.