MantisBT - VTK
View Issue Details
0000122VTK(No Category)public2003-07-31 23:072004-02-03 14:29
Andrew Maclean 
Brad King 
lowminoralways
closedno change required 
 
 
0000122: interaction between '_setjmp' and C++ object destruction is non-portable
VC .NET2003
In:
\VTK\IO\vtkPNGWriter.cxx(222)
\VTK\IO\vtkJPEGWriter.cxx(231)
No tags attached.
Issue History
2011-06-16 13:11Zack GalbreathCategory => (No Category)

Notes
(0000616)
Brad King   
2004-02-03 14:29   
The png and jpeg libraries specify in their error handling interface that the error reporting functions are not allowed to return. Therefore these functions must use longjmp. The code that uses setjmp/longjmp, while in a C++ file, has been carefully written to avoid constructor/destructor problems. There is a pragma used to disable warning 4611 in Visual Studio unless VTK_DISPLAY_WIN32_WARNINGS is defined during the build.