Jump to content

View more

Image of the Day

Working on an auto spawn system. #gamedev #indiedev #screenshotsaturday https://t.co/Mm2kfekz7b
IOTD | Top Screenshots

The latest, straight to your Inbox.

Subscribe to GameDev.net Direct to receive the latest updates and exclusive content.


Sign up now
- - - - -

asASSERT - call release method from object with out ref counting

4: Adsense

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   

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



#2 Andreas Jonsson   Moderators   

4624
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   

4624
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.