Who owns the GeUserArea?

THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

On 06/02/2009 at 04:19, xxxxxxxx wrote:

User Information:
Cinema 4D Version:   11 
Platform:      
Language(s) :     C++  ;

---------
Hi!

Bool AttachUserArea(GeUserArea& ua, const GadgetPtr& id, LONG userareaflags)

Am I right, that I have to delete the GeUserArea element when I don't need it anymore or does CINEMA 4D takes the ownership? I can't find that information in the doc.

Thanks.

Sebastian

THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

On 06/02/2009 at 04:31, xxxxxxxx wrote:

As the user area is passed as reference, it seems clear that you are the owner of the user area.

Easiest way to not care about is of course:
yourdialogClass
{
private:
GeUserArea userarea;
}

THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

On 06/02/2009 at 04:34, xxxxxxxx wrote:

oh yes.. you are right. thx. stupid question.

THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

On 06/02/2009 at 07:33, xxxxxxxx wrote:

no stupid question, just obvious. 😉