[Insight-users] itk smart pointer

庄吓海(Xiahai Zhuang) arhye at 163.com
Fri Dec 9 23:15:40 EST 2005


Hello all
   when I new a C++ object, call a method which employs std::ifstream to read data from file;
then when back from that calling , when I use itk::Object::New() or other operation that might
use smart pointer to new a object, there would be a exception in 
__cdecl _CrtIsValidHeapPointer(
        const void * pUserData) // file: dbgheap.c

when I donot call the method that employs std::ifstream method, it would meet this problem.

Is that any method to avoid this problem.
Thanks alot!!





More information about the Insight-users mailing list