• Advertisement
Sign in to follow this  

asASSERT - call release method from object with out ref counting

This topic is 1930 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi [img]http://public.gamedev.net//public/style_emoticons/default/smile.png[/img]

Bug in this code, he call Release method from widget - nr2 = nr;

r=en->RegisterObjectType( "Widget", 0, asOBJ_REF | asOBJ_NOCOUNT ); assert( r >= 0 );

class NoRef
Widget @no_ref_count;

void startGame()
NoRef nr;

@nr.no_ref_count = scene.CreateWidget();

NoRef nr2 = nr;


Share this post

Link to post
Share on other sites
Sign in to follow this  

  • Advertisement