MantisBT - VTK |
View Issue Details |
|
ID | Project | Category | View Status | Date Submitted | Last Update |
0013018 | VTK | (No Category) | public | 2012-03-21 09:19 | 2013-06-25 09:35 |
|
Reporter | Pavel Pokutnev | |
Assigned To | Dave DeMarle | |
Priority | high | Severity | minor | Reproducibility | have not tried |
Status | closed | Resolution | fixed | |
Platform | | OS | | OS Version | |
Product Version | 5.8.0 | |
Target Version | | Fixed in Version | 5.10.0 | |
Project | TBD |
Type | crash |
|
Summary | 0013018: BUG: vtkFixedPointVolumeRayCastMapper in MFC Application, non standard std::bad_alloc behavior |
Description | vtkFixedPointVolumeRayCastMapper causes MFC application to crash on 32-bit systems, during rendering of big volumes. The problem is the non standard hahavior of the new operator. MFC provides its own operator new, which throws, instead of std::bad_alloc, a CMemoryException* on allocation failure. This is also the case in vtkFixedPointVolumeRayCastMapper during allocation of ContiguousGradientNormal and ContiguousGradientMagnitude in the ComputeGradients() function.
To work around this issue we can either use "catch(...)" instead of "catch(std::bad_alloc &)" or use the "new (std::nothrow)"!
This behavior was verified under VS9 and VS10!
Please see this article for more details on std::bad_alloc handling under VC++: http://msdn.microsoft.com/en-us/magazine/cc164087.aspx [^]
|
Steps To Reproduce | |
Additional Information | |
Tags | No tags attached. |
Relationships | |
Attached Files | |
|
Issue History |
Date Modified | Username | Field | Change |
2012-03-21 09:19 | Pavel Pokutnev | New Issue | |
2012-03-21 09:24 | Pavel Pokutnev | Note Added: 0028379 | |
2013-06-25 09:32 | Dave DeMarle | Note Added: 0031037 | |
2013-06-25 09:32 | Dave DeMarle | Project | VTK => ParaView |
2013-06-25 09:33 | Dave DeMarle | Project | ParaView => VTK |
2013-06-25 09:34 | Dave DeMarle | Status | backlog => todo |
2013-06-25 09:34 | Dave DeMarle | Resolution | open => fixed |
2013-06-25 09:34 | Dave DeMarle | Fixed in Version | => 5.10.0 |
2013-06-25 09:35 | Dave DeMarle | Assigned To | => Dave DeMarle |
2013-06-25 09:35 | Dave DeMarle | Status | todo => active development |
2013-06-25 09:35 | Dave DeMarle | Status | active development => gatekeeper review |
2013-06-25 09:35 | Dave DeMarle | Status | gatekeeper review => customer review |
2013-06-25 09:35 | Dave DeMarle | Status | customer review => closed |