Message: Re: segment fault when exitting Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

None Re: segment fault when exitting 

Keywords: state management
Forum: Run Management
Re: Question segment fault when exitting (luhao)
Date: 07 Mar, 2005
From: Makoto Asai <Makoto Asai>

There could be three potential reasons that might cause the problem.

1. You would define "virtual" for the destructor of your UserHookForIdle
class. I.e.
    virtual ~UserHookForIdle();

2. Virtual destructor should not be defined in the header file. Thus move
the empty implementation to the source file.

3. I don't know whether the object belongs to the main() method can be
deleted before the program comes to the very end of main(). Modify
the definition of UserHookForIdle in your main() to
  UserHookForIdle* myhook = new UserHookForIdle();

Hope they help.

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

 Add Message Add Message
to: "Re: segment fault when exitting"

 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 ]