Thanks for the update ________________________________________ From: openexr-devel-bounces+pstanczyk=ilm....@nongnu.org [openexr-devel-bounces+pstanczyk=ilm....@nongnu.org] on behalf of Dalai Felinto [dfeli...@gmail.com] Sent: 07 June 2013 00:59 To: openexr-devel@nongnu.org Subject: Re: [Openexr-devel] IStream segfault with Windows release libraries (it works with debug)
Problem solved in my end. The issue wasn't with IStream but with StringVector. If anyone is curious about the fix: https://github.com/dfelinto/blender/commit/181e780aa84122db540130e4cfbdf3240cf010d9 I'm still not sure if the original issue was due to bad code (mine), or MSVC is simply more restrict in returning a static StringVector from a function. It's strange that it was working in Linux+OSX+Win (debug). Thanks anyways, and sorry about the noise in the list, Dalai -- blendernetwork.org/member/dalai-felinto www.dalaifelinto.com 2013/6/5 Dalai Felinto <dfeli...@gmail.com>: > Hi there, > > I'm having some troubles with openexr2.0 libraries for windows when > building as Release. > I'm still investigating the problem (which is not so easy given that > Debug is working fine) but the segfaults starts when I open an exr > with the call: > > Mem_IStream *membuf = new Mem_IStream(mem, size); > > In this case MEM_IStream is a struct inheriting IStream: > http://www.pasteall.org/42868/cpp > > The entire code in this file can be found: > https://svn.blender.org/svnroot/bf-blender/branches/multiview/source/blender/imbuf/intern/openexr/openexr_api.cpp > > This code is working fine in Mac, Linux (release and debug) and > windows in debug mode. > Windows libraries built with default options, but switching /MD[d] to /MT[d] > > Instructions: > ilmbase: http://shadowrom.de/?page_id=237 > openexr: http://shadowrom.de/?page_id=241 > > Compiled libraries: > https://svn.blender.org/svnroot/bf-blender/trunk/lib/windows/openexr/ > https://svn.blender.org/svnroot/bf-blender/trunk/lib/win64/openexr/ > > Has anyone experienced anything similar? Any hints on how to debug this? > > Many thanks, > Dalai > -- > blendernetwork.org/member/dalai-felinto > www.dalaifelinto.com _______________________________________________ Openexr-devel mailing list Openexr-devel@nongnu.org https://lists.nongnu.org/mailman/listinfo/openexr-devel _______________________________________________ Openexr-devel mailing list Openexr-devel@nongnu.org https://lists.nongnu.org/mailman/listinfo/openexr-devel