Message: Seg Fault in G4VProcess::GetProcessName() ??? Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Question Seg Fault in G4VProcess::GetProcessName() ??? 

Keywords: G4VProcess GetProcessName seg fault G4String
Forum: Event and Track Management
Date: 23 Mar, 2004
From: Andrea Sharp <asharp@uiuc.edu>

Hello,
I am using Geant4, version 4.4.0 and gcc version 2.95.4.
I am trying to call the function G4VProcess::GetProcessName() on a G4VProcess pointer:

G4cout<<"I am here before stepProcess"<<G4endl;

const G4VProcess* process = aStep-> GetPreStepPoint()-> GetProcessDefinedStep();

G4cout<<"Looking up name of process ..........."<<G4endl;
G4String stepProcessName = process->GetProcessName();
G4cout<<"This process was "<<stepProcessName<<G4endl;

which produces the output:

I am here before stepProcess
Looking up name of process ...........
<<<<< and then it seg faults! >>>>>>

Can anyone tell me why this seg fault occurs? Is it an incorrect
call of the function, or something else? Any help is sincerely appreciated.

Thank you,
Andrea Sharp

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

1 None: Re: Seg Fault in G4VProcess::GetProcessName() ???   (John Apostolakis - 24 Mar, 2004)
 Add Message Add Message
to: "Seg Fault in G4VProcess::GetProcessName() ???"

 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 ]