//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
asIScriptGeneric and null object handles
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:
Hi Hans,
I've fixed this in the latest WIP. Thanks for letting me know.
Regards,
Andreas
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
Popular Topics
Advertisement