MantisBT - VTK
View Issue Details
0008537VTK(No Category)public2009-02-16 04:312016-08-12 09:55
Jens Thielemann 
Kitware Robot 
normalcrashalways
closedmoved 
 
 
0008537: vtkCommonInformationKeyManager singleton is not initialized properly
When linking statically using Visual C++ 2005, for some projects the program will always crash at startup.

This is due to that vtkCommonInformationKeyManager::Register(vtkInformationKey* key) is called by the runtime before vtkCommonInformationKeyManager::vtkCommonInformationKeyManager(). The singleton initialization procedure is thus unsafe.
Replacing the code with the included file should fix the problem.

This is a quick fix, a more robust way of initializing singletons would clearly be preferred.


No tags attached.
cxx vtkCommonInformationKeyManager.cxx (3,653) 2009-02-16 04:31
https://www.vtk.org/Bug/file/7055/vtkCommonInformationKeyManager.cxx
Issue History
2009-02-16 04:31Jens ThielemannNew Issue
2009-02-16 04:31Jens ThielemannFile Added: vtkCommonInformationKeyManager.cxx
2011-06-16 13:11Zack GalbreathCategory => (No Category)
2016-08-12 09:55Kitware RobotNote Added: 0037054
2016-08-12 09:55Kitware RobotStatusexpired => closed
2016-08-12 09:55Kitware RobotResolutionopen => moved
2016-08-12 09:55Kitware RobotAssigned To => Kitware Robot

Notes
(0037054)
Kitware Robot   
2016-08-12 09:55   
Resolving issue as `moved`.

This issue tracker is no longer used. Further discussion of this issue may take place in the current VTK Issues page linked in the banner at the top of this page.