Message: memory leak using G4GammaNuclearReaction in G4.9.1 Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Question memory leak using G4GammaNuclearReaction in G4.9.1 

Keywords: memory leak
Forum: Physics List
Date: 28 Feb, 2008
From: Alfred Tang <Alfred Tang>

I am trying simulate muon-induced produciton of neutrons in a liquid scintillator
detector.  As a start, I have the following lines in my PhysicsList:

    G4String particleName = particle->GetParticleName();
    if (particleName == "gamma") {
      //low energy part
      G4GammaNuclearReaction* lowEGammaModel = new G4GammaNuclearReaction();
      //photonuclear process
      G4PhotoNuclearProcess* photoProc = new G4PhotoNuclearProcess();

But when I run this code using Geant4.9.1 or Geant4.9.1.p01, it seems to have
a memory leak because I can see that RAM memory is quickly used up and then the
swap disk is also soon filled up before the program crashes.  I did not have
this problem before when I was running Geant4.9.0.  As far as I know, I only
see this problem in Geant4.9.1 and Geant4.9.p01.  Can anyone tell me what is wrong?
How do I fix the problem?  Thanks.

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

1 None: Re: memory leak using G4GammaNuclearReaction in G4.9.1   (Vladimir IVANTCHENKO - 01 Mar, 2008)
 Add Message Add Message
to: "memory leak using G4GammaNuclearReaction in G4.9.1"

 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 ]