MantisBT - ITK | |||||
View Issue Details | |||||
ID | Project | Category | View Status | Date Submitted | Last Update |
0004713 | ITK | public | 2007-03-29 06:04 | 2007-04-02 14:39 | |
Reporter | Fucang Jia | ||||
Assigned To | Luis Ibanez | ||||
Priority | normal | Severity | major | Reproducibility | always |
Status | closed | Resolution | fixed | ||
Platform | OS | OS Version | |||
Product Version | |||||
Target Version | Fixed in Version | ||||
Resolution Date | |||||
Sprint | |||||
Sprint Status | |||||
Summary | 0004713: BMPImageIO problem when used in ImageSeriesReader | ||||
Description | When I use ImageSeriesReadWrite in Examples/IO to read a series of BMP image files, the program crashed with exception: itkExceptionMacro("BMPImageIO could not open file: " << this->GetFileName() << " for reading." << std::endl << "Reason: " << itksys::SystemTools::GetLastSystemError()); I saw that it is because the m_Ifstream was not closed when reopen. So when it is closed the problem work. I added one line "m_Ifstream.close();" at the end of ReadImageInformation function. added one line at the begin of the Read function m_Ifstream.open( m_FileName.c_str(), std::ios::in | std::ios::binary ); added comments the m_Ifstream.close(); in the destruction function. | ||||
Steps To Reproduce | |||||
Additional Information | |||||
Tags | No tags attached. | ||||
Relationships | |||||
Attached Files | ![]() https://public.kitware.com/Bug/file/962/itkBMPImageIO_new.cxx | ||||
Issue History | |||||
Date Modified | Username | Field | Change |
Notes | |||||
|
|||||
|
|