Re: disposing of an EC
Re: disposing of an EC
- Subject: Re: disposing of an EC
- From: Mike Schrag <email@hidden>
- Date: Wed, 20 Jul 2011 10:42:31 -0400
>> I am using an AjaxModalDialog when I create a new object for my app. The content of the AMD is from a component. When this component is created, I create an EC.
>>
>> should I dispose() of this EC when I close the dialog? I guess this is a question of style. Will it be garbage collected on its own? or Do I gain anything if I theEC.dispose(); when I am done?
> Calling dispose() may / should result in the JVM having free memory sooner. It is not a big deal.
the bigger deal is disposing unregisters for NSNotifications, which can cause problems if you have a high volume app making EC's and leaving them around. for most apps, you probably won't notice.
ms _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden