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.
Post Reply
glames
Posts: 21
Joined: Wed Aug 31, 2011 12:08 am

LM_REMOVECHILD frees removed object ?

Post by glames »

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: 21
Joined: Wed Aug 31, 2011 12:08 am

Re: LM_REMOVECHILD frees removed object ?

Post by glames »

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?
User avatar
broadblues
AmigaOS Core Developer
AmigaOS Core Developer
Posts: 600
Joined: Sat Jun 18, 2011 2:40 am
Location: Portsmouth, UK
Contact:

Re: LM_REMOVECHILD frees removed object ?

Post by broadblues »

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
glames
Posts: 21
Joined: Wed Aug 31, 2011 12:08 am

Re: LM_REMOVECHILD frees removed object ?

Post by glames »

Hi Andy,

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

Thank you for your reply.

Cheers,
Glames
Post Reply