[futurebasic] Re: [FB] Where shall I stick my CFArrayRef

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : February 2006 : Group Archive : Group : All Groups

From: Steve Crossman <mactech@...>
Date: Sun, 26 Feb 2006 15:47:33 -0500
This is what I  was going to say, " Just Quit "  then I read Ken's  
reply.  It was my understanding that one could just QUIT without  
worrying about any allocations of memory !!

thanks for the clarification Robert, as Ken's comments got me  
wondering and looking to find truth to the matter.

~ steve

On Feb 26, 2006, at 3:35 PM, Robert Purves wrote:

>
> Ken Shmidheiser wrote:
>>> 3. Should I release the array on app quit or will that be taken  
>>> care of for me?
>>
>> If you want to avoid a crash on quit, you should release the  
>> objects you're holding in memory. Ultimately, the system will do  
>> it, but not so gracefully.
>
> I disagree. Just quit. All memory allocated to a process (whether  
> by NewHandle, NewPtr, malloc or the CF allocators) is released  
> safely, quickly and automatically. Moreover, you don't have to  
> write any extra code. That's what I call "graceful".
>
> Robert P.
>
> --
>