View Issue Details [ Jump to Notes ] | [ Print ] |
ID | Project | Category | View Status | Date Submitted | Last Update |
0008537 | VTK | (No Category) | public | 2009-02-16 04:31 | 2016-08-12 09:55 |
|
Reporter | Jens Thielemann | |
Assigned To | Kitware Robot | |
Priority | normal | Severity | crash | Reproducibility | always |
Status | closed | Resolution | moved | |
Platform | | OS | | OS Version | |
Product Version | | |
Target Version | | Fixed in Version | | |
|
Summary | 0008537: vtkCommonInformationKeyManager singleton is not initialized properly |
Description | 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. |
Additional Information | 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.
|
Tags | No tags attached. |
|
Project | |
Type | |
|
Attached Files | vtkCommonInformationKeyManager.cxx [^] (3,653 bytes) 2009-02-16 04:31 |
|