|Message: RE: Ownership and persistence of G4UIcommands and G4UIdirectories?||Not Logged In (login)|
Click on the Forum title, e.g. on the "Forums by Category" page, to read a sequence of postings to the Forum and its threads all in one page. If you are only interested in one thread or the thread following a specific posting, click the thread or the posting, which takes you to a smaller page, which contains only the part you are interested in and may be easier to navigate.
Messages are "chained" if there are only replies at the first level, i.e. 1/1.html, 1/1/1.html etc. In case of "chained" messages the message number is replaced by the icon and there is no indentation.
Inline: Display the subject line only or also the text of the posting(s); for the choice "All" the "Outline" choices are switched off.
|1||0||1||no text / full text of posting|
|2||1||All||text for level 1 only / text for All postings|
Outline: Choose the depth of the posting thread, successive toggle controls provide increasing detail.
|1||2||1||2 levels / 1 level (original posting)|
|2||3||2||3 levels / 2 levels|
|3||3||All||3 levels / all levels (all postings)|
When a target class is deleted, the corresponding messenger must be deleted. Also, you should delete all commands and command directories that particular messenger created. Makoto > -----Original Message----- > From: Michael H. Kelsey [mailto:firstname.lastname@example.org] > Sent: Monday, December 13, 2010 12:25 PM > To: userinterface-g4hn > Subject: Ownership and persistence of G4UIcommands and G4UIdirectories? > > > *** Discussion title: (Graphical) User Interfaces > > I am developing a "modular" geometry model application to be used with > the SuperCDMS experiment. In the code we're using, each geometry > component builder has its own Messenger class, which it instantiates > and > owns, and which it then deletes in its destructor. > > I discovered recently during testing that I cannot properly "switch" > geometries in a single job (I wanted to write a macro to do overlaps > checking for all the geometries in sequence). What happens when I > switch > from one detector to another is that the component builders all get > deleted, and new ones created. If one of the "new" ones happens to have > been present previously, the Messenger commands don't get properly > reinstantiated. > > When a Messenger class is created, are the G4UIcommands (and > subclasses) > owned by the Messenger itself, or does owner ship get transferred > (invisibly) to the G4UIManager? Should I delete those commands (or the > whole Messenger) myself or not? > > ------------------------------------------------------------- > Visit this GEANT4 at hypernews.slac.stanford.edu message (to reply or > unsubscribe) at: > http://hypernews.slac.stanford.edu/HyperNews/geant4/get/userinterface/7 > 7.html
|Inline Depth:||Outline Depth:||Add message:|