[ITK] [ITK-users] ImageSeriesReader type pointer crashes in debug mode
Ritesh Mahajan
ritesh.mahajan at ripl.ricoh.com
Tue Sep 25 01:34:25 EDT 2018
Hello Team,
When i am creating a smart pointer globally and allocating the memory to it. When this is ran in debug mode "it crashes". While when the same code is run in release mode it seems to work fine. Can some one help me out why is it so ?
Please find the below code:
typedef signed short PixelType;
typedef itk::Image< PixelType, 3>ImageType;
typedef itk::ImageSeriesReader< ImageType >ReaderType;
ReaderType:: Pointer reader= ReaderType::New();
void ImageRead()
{
// using pointer reader here.
// which is allocated memory at global level
}
The above code crashes in debug mode.
Thanks,
Ritesh Mahajan
The ITK community is transitioning from this mailing list to discourse.itk.org. Please join us there!
________________________________
Powered by www.kitware.com
Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html
Kitware offers ITK Training Courses, for more information visit:
http://www.kitware.com/products/protraining.php
Please keep messages on-topic and check the ITK FAQ at:
http://www.itk.org/Wiki/ITK_FAQ
Follow this link to subscribe/unsubscribe:
https://itk.org/mailman/listinfo/insight-users
More information about the Community
mailing list