For files under the limit size, is there a performance difference between your new implementation, and the existing implementation?
-----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Michael Wolf Sent: Tuesday, May 29, 2007 11:50 AM To: [email protected] Subject: Re: [Openexr-devel] tellg() throws an exception on large files:OpenEXR V1.4.0a - VS2005 On Tue, 29 May 2007 02:53:40 +0200, Michael Wolf <[EMAIL PROTECTED]> wrote: Not only do I talk to myself, but I keep myself up to date as well ;) >> I've got a problem reading a large, tiled openEXR file (that I could write perfectly - line order: RANDOM_Y). >> >> The exception Iex::EinvalExc is thrown after a call of _is->seekg(3730400304) in Imf::StdIFStream::seekg(). >> >> The size of the file is 4.058.791.693 bytes, so just below a potential 4GB limit (which by itself would surprise me). Solution: I've written a custom Low-Level File-I/O using the Win32 API (CreateFile(), ReadFile(), SetFilePointerEx() etc...). It now works as expected reading a file beyond 2GB. Once I've cleaned up the code I'll mail it to Florian to include if he likes to. If there is any interest here I'll also attach the code or provide it for download (whatever is preferable). Cheers, Mike - happy now :D -- db&w Bornemann & Wolf GbR Dagmar Bornemann, Michael Wolf Seyffer Str. 34 70197 Stuttgart Germany http://www.db-w.com http://www.infinimap.com tel: +49 (711) 664 525-0 fax: +49 (711) 664 525-1 icq: 252887990 skype: lupus_lux _______________________________________________ Openexr-devel mailing list [email protected] http://lists.nongnu.org/mailman/listinfo/openexr-devel _______________________________________________ Openexr-devel mailing list [email protected] http://lists.nongnu.org/mailman/listinfo/openexr-devel
