[Insight-users] segmentation faults
Aditya Chandramouli
antariksh at gmail.com
Mon May 15 16:52:06 EDT 2006
Hi,
I've been trying to clean up some code of mine. To do this, I take out chunks
from the GenerateData() method and write separate methods that are called
during the execution of GenerateData(). However this has been causing some
segmentation faults on runtime, even though the code worked when directly
included in the GenerateData() method.
As I'm not sure anyone would have the patience to go through buggy code, would
it be possible for someone to point out a few guidelines? In particular:
- where to insert instantiations of SmartPointers: in the constructor or the
GenerateData() method?
- whether to declare variables in the implementation (.txx) file or in the
header?
- ...
thanks.
-aditya
More information about the Insight-users
mailing list