openexr-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [Openexr-devel] Imf::InputFile constructor crashing


From: Nick Porcino
Subject: RE: [Openexr-devel] Imf::InputFile constructor crashing
Date: Tue, 9 May 2006 13:02:49 -0700

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: address@hidden
[mailto:address@hidden On
Behalf Of Graham Fyffe
Sent: Tuesday, May 09, 2006 12:30 PM
To: address@hidden
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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]