Advertisement

asIScriptGeneric and null object handles

Started by November 07, 2007 09:29 AM
0 comments, last by WitchLord 17 years ago
hi i've found that passing or returning null handles when using call_generic convention causes crash (mostly because of calling addref/release methods on null pointer) the simple fix is to add 'obj &&' to lines:
//as_generic.cpp (Ln  408 Col  9)
if( obj && beh->addref )


//as_context.cpp (Ln 3446 Col 17) (Ln 3475 in current WIP)
if( obj && beh->release )
hans
Hi Hans,

I've fixed this in the latest WIP. Thanks for letting me know.

Regards,
Andreas

AngelCode.com - game development and more - Reference DB - game developer references
AngelScript - free scripting library - BMFont - free bitmap font generator - Tower - free puzzle game

This topic is closed to new replies.

Advertisement