Hi Chris,

    Thanks for your reply.  My project is using MSVS 9.0 and I am sure I have 
added osgDB.lib in property settings for compiling.  The debug and release 
settings are the same except the libraries for debug that are used the 
libraries with "d" at the end of library file.  If you think the problem is the 
related dll is not loaded in release mode, why it can work in debug mode.  I 
also would like to know how to do to turn up osg debug level.  Thanks.


Regards,
Clement
________________________________________
From: [email protected] 
[[email protected]] On Behalf Of Chris 'Xenon' Hanson 
[[email protected]]
Sent: Thursday, 8 December 2011 3:04 AM
To: [email protected]
Subject: Re: [osg-users] osgDB::writeImageFile return false in release mode only

On 12/7/2011 1:34 AM, [email protected] wrote:
> Hi,
>   I got a problem on calling osgDB::writeImageFile function.  If my program 
> built in debug mode and using osg debug libraries, this function works 
> perfectly.  If the program is built in release mode with using osg release 
> libraries, this function will return false.  Anyone got an idea to fix it?  
> Thanks.

  Turn up the OSG Debug level. You're probably not loading the release-mode DLL 
for the
image saver.

--
Chris 'Xenon' Hanson, omo sanza lettere. [email protected] 
http://www.alphapixel.com/
  Digital Imaging. OpenGL. Scene Graphs. GIS. GPS. Training. Consulting. 
Contracting.
    "There is no Truth. There is only Perception. To Perceive is to Exist." - 
Xen
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to