Re: [osg-users] osgDB::writeImageFile return false in release mode only

2011-12-08 Thread Garthy D

On 08/12/11 10:29, Chris 'Xenon' Hanson wrote:

On 12/7/2011 4:50 PM, clement@csiro.au wrote:

  I also would like to know how to do to turn up osg debug level.  Thanks.


http://lmgtfy.com/?q=osg+debug+level



As well as the OSG_NOTIFY_LEVEL environment variable, there is also the 
osg::setNotifyLevel() call. Enabling verbose OSG logging and searching 
the resultant logs will save you an incredible amount of time and 
frustration.


Garth
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


[osg-users] osgDB::writeImageFile return false in release mode only

2011-12-07 Thread Clement.Chu
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.


Regards,
Clement
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] osgDB::writeImageFile return false in release mode only

2011-12-07 Thread Chris 'Xenon' Hanson
On 12/7/2011 1:34 AM, clement@csiro.au 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. xe...@alphapixel.com 
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
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] osgDB::writeImageFile return false in release mode only

2011-12-07 Thread Clement.Chu
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: osg-users-boun...@lists.openscenegraph.org 
[osg-users-boun...@lists.openscenegraph.org] On Behalf Of Chris 'Xenon' Hanson 
[xe...@alphapixel.com]
Sent: Thursday, 8 December 2011 3:04 AM
To: osg-users@lists.openscenegraph.org
Subject: Re: [osg-users] osgDB::writeImageFile return false in release mode only

On 12/7/2011 1:34 AM, clement@csiro.au 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. xe...@alphapixel.com 
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
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] osgDB::writeImageFile return false in release mode only

2011-12-07 Thread Chris 'Xenon' Hanson
On 12/7/2011 4:50 PM, clement@csiro.au wrote:
 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.


  Possibly you've not copied a DLL to the right place, or something similar. 
There are
many possible reasons. The easiest way to find ou is with the debug level, or a 
tool like
Process Monitor.

  I also would like to know how to do to turn up osg debug level.  Thanks.

http://lmgtfy.com/?q=osg+debug+level

-- 
Chris 'Xenon' Hanson, omo sanza lettere. xe...@alphapixel.com 
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
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org