Message: Re: Usage of memory in a sensitive detector Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Idea Re: Usage of memory in a sensitive detector 

Forum: Run Management
Re: Question Usage of memory in a sensitive detector (Mario)
Date: 29 Nov, 2010
From: Neoh <Neoh>

Hi Mario,

Try to call delete in appropriate places after using the heap memory, in particular, pointers to "FiberCollection" in Initialize() and "newHit" in ProcessHits(). In my experience, the unusually consuming memory is because of some pointers being released but the memory is not freed. If the method is being accessed many times, that could result in awful lot of stacking memory.

Hope this helps

Neoh

 Add Message Add Message
to: "Re: Usage of memory in a sensitive detector"

 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 ]