Jump to content

  • Log In with Google      Sign In   
  • Create Account

- - - - -

asASSERT - call release method from object with out ref counting


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
2 replies to this topic

#1 FDsagizi   Members   -  Reputation: 514

Like
0Likes
Like

Posted 30 September 2012 - 04:25 AM

Hi Posted Image

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;
}



Sponsor:

#2 Andreas Jonsson   Moderators   -  Reputation: 3444

Like
0Likes
Like

Posted 03 October 2012 - 07:00 PM

Thanks. I'll look into this.
AngelCode.com - game development and more - Reference DB - game developer references
AngelScript - free scripting library - BMFont - free bitmap font generator - Tower - free puzzle game

#3 Andreas Jonsson   Moderators   -  Reputation: 3444

Like
0Likes
Like

Posted 06 October 2012 - 05:52 PM

This has been fixed in revision 1426
AngelCode.com - game development and more - Reference DB - game developer references
AngelScript - free scripting library - BMFont - free bitmap font generator - Tower - free puzzle game




Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS