Inside Sabertooth
Learn how Sabertooth uses 3ds Max to create 3D interactive projects, including HBO Go’s Game of Thrones interactive experience
  • 1/3
You are here: Forum Home / Autodesk® FBX® / FBX SDK / Disabling or custom handling of error messages to stdout
  RSS 2.0 ATOM  

Disabling or custom handling of error messages to stdout
Rate this thread
 
62671
 
Permlink of this thread  
avatar
  • Total Posts: 2
  • Joined: 08 December 2011 03:00 PM

Hi,

When I try to import a file that does not exist using KFbxImporter::Initialize() I get an “Unexpected file type” message printed to stdout. I would like all error and warning messages to go through a custom logger. Is there a way I can set-up a custom handler for these prints instead of them going directly to stdout? Simpler can I disable the prints as the return value and GetLastErrorString() provide all of the error information I need.

Thanks,
Mark



Replies: 1
/userdata/avatar/vx3501hqr_small.jpg

Hello Mark, there is an environment variable K_ASSERT_ON to suppress asserts, please try to set it as 0.
Up to my memory, the name of this variable may be different in an earlier version, but it is like this at least for 2012.

Regards,
Jiayang

Author: Jiayang Xu

Replied: 08 December 2011 06:40 PM  
avatar

Thanks Jiayang,

Your tip pointed me to kdebug.h which is what I was looking for. I also realize now that the message only appears in the debug version of the library.

Cheers,
Mark



Replies: 0