C++
node type is - asRef
r=en->RegisterObjectMethod("Object","Node &FirstNode()", asMETHOD( Object, FirstNode ), asCALL_THISCALL ); assert( r >= 0 );
r=en->RegisterObjectMethod("Xml","void SetNode(Node@&)", asMETHOD(Xml,SetNode),asCALL_THISCALL);assert(r>=0);
This script code work!
Node @n = cam.FirstNode();
xml.GetNode( n );
But, This code crash program!
xml.GetNode( cam.FirstNode() );
Reference no valid!