Message: Re: class instantiated twice in Brachytherapy example Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Ok Re: class instantiated twice in Brachytherapy example 

Keywords: memory management, brachytherapy
Forum: Documentation and Examples
Re: Question class instantiated twice in Brachytherapy example (Luís Perles)
Date: 25 Jul, 2005
From: susanna guatelli <guatelli@infnge.ge.infn.it>

The detector class is instantiated in the main. 
In the BrachyRunAction the "detector" is a pointer to the Brachy
DetectorConstruction class.
The pointer is created in the constructor and deleted in the destructor
of the BrachyRunManager. As a consequence there is not a memory leak.
Anyway the pointer is not "used" in the class, so it is an error
 to instantiate a pointer that is not used.
In the next release the pointer to the BrachyDetectorConstruction 
will be deleted in the BracyRunAction.  
Thanks for the observation, 
Susanna  

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

1 None: Re: class instantiated twice in Brachytherapy example   (Luís Perles - 29 Jul, 2005)
 Add Message Add Message
to: "Re: class instantiated twice in Brachytherapy example"

 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 ]