LM_REMOVECHILD frees removed object ?

This is the place to ask if you have any issues with our forum system. These include questions about your account, PM's, login trouble, etc.

LM_REMOVECHILD frees removed object ?

Postby glames » Thu Oct 26, 2017 12:56 pm

Hi,

I'd like ot know if LM_REMOVECHILD method frees the removed object ?

From autodoc:
LM_REMOVECHILD -- Remove object from active layout.


I understand that it just removes the object from the layout but that it still lives.
But if I dispose the object after having removed it from layout, it freezes Amiga.

So I guess it removes AND disposes the object?
glames
 
Posts: 14
Joined: Wed Aug 31, 2011 1:08 am

Re: LM_REMOVECHILD frees removed object ?

Postby glames » Thu Oct 26, 2017 4:09 pm

OK, I reply to myself.

The SDK example "dynamicexample" confirms that it disposes the object after removing it from the layout.

Maybe the auto doc should be modified?
glames
 
Posts: 14
Joined: Wed Aug 31, 2011 1:08 am

Re: LM_REMOVECHILD frees removed object ?

Postby broadblues » Fri Oct 27, 2017 3:03 am

The current autodoc says the following:

After successfully removing the object, this method will dispose
of the object via the DisposeObject() function.


BTW if you don't want it disposed of you can set CHILD_NoDispose,TRUE
User avatar
broadblues
AmigaOS Core Developer
AmigaOS Core Developer
 
Posts: 481
Joined: Sat Jun 18, 2011 3:40 am
Location: Portsmouth, UK

Re: LM_REMOVECHILD frees removed object ?

Postby glames » Fri Oct 27, 2017 12:35 pm

Hi Andy,

It seems that I didn't read the autodoc until it ;)

Thank you for your reply.

Cheers,
Glames
glames
 
Posts: 14
Joined: Wed Aug 31, 2011 1:08 am


Return to Forum Questions

Who is online

Users browsing this forum: No registered users and 1 guest