Is it possible that filename is a std::string that fell out of scope,
and so it's failing because it didn't open the file you wanted?

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On
Behalf Of Graham Fyffe
Sent: Tuesday, May 09, 2006 12:30 PM
To: [email protected]
Subject: [Openexr-devel] Imf::InputFile constructor crashing

Hi everybody.

I am working on Win32 with OpenEXR version 1.2.2.

Sometimes I get a crash when I construct an Imf::InputFile.  Just like
this:


        cout << "check 0" << endl;
        Imf::InputFile file(filename);
        cout << "check 1" << endl;


I see "check 0" but not "check 1".  It does NOT throw any exceptions,
i.e. my catch(...) statement is never entered!

I tried to debug it.  I entered Debug mode, and the behavior changes! 
In debug mode, it waits until I call file.header().channels().begin()
before crashing!  It seems the data in the file object is corrupt
(i.e. the data inside the file, channelList, etc is totally corrupt),
but the debugger did not get triggered for some reason.

I have attached the file.  I don't think the file is corrupt; i.e. I
can open it in other applications.

- Graham Fyffe


_______________________________________________
Openexr-devel mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/openexr-devel

Reply via email to