SND-LHC / sndsw

SND@LHC experiment framework based on FairShip and FairRoot
6 stars 16 forks source link

eventDisplay: No need to commit suicide if you can disown #176

Closed olantwin closed 11 months ago

olantwin commented 11 months ago

Supersedes #174.

I think this is a bug in FairEventManager, whose destructor causes a segmentation violation if the Eve window is closed.

By checking whether the Eve window has been destructed (it will be a NULL pointer), we can disown to prevent FairEventManager from being destroyed. Maybe some of the class members are safe to destroy, but at least one of them is already deleted.

PS: As this is a bug in FairRoot, there is no need to check for the ROOT version.