On Dec 31, 2007, at 5:46 PM, Joe Strout wrote:
> On Dec 31, 2007, at 3:42 PM, Adam Shirey wrote:
>
>> Not so. The reason they hang around in memory is because sockets
>> are a
>> special case and are not destroyed even when their reference is
>> lost. See
>> Aaron's Socket Readme: "One of the new features of sockets in
>> REALbasic 5.0is the ability to orphan a socket... The socket will
>> continue to live and stay connected, even though there is nothing
>> owning a reference to it." This has been a feature of sockets for a
>> few years now.
>
> That's true, but it's ALSO true that any objects with any references
> to them (including circular ones) will continue to hang around and
> not be destroyed.
heh, so I picked a bad example using a socket as that is a special
case. Threads are also a special case for the same reason. It almost
feels to me like a timer should be a special case too, keeping a self
reference until it fires, or forever as long as it's mode is 2.
Wouldn't you put a timer in the same list of special cases as a socket
and a thread?
Thanks,
James
James Sentman http://sentman.com
http://MacHomeAutomation.com
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>
|