469,356 Members | 1,989 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,356 developers. It's quick & easy.

weak, soft, phantom

I see weak reference on the .net api, but I do not see soft or phantom, are
they supported on .net?
Nov 15 '05 #1
3 2149

"memememe" <[rem]casolorz[rem]@hot[rem]mail.com> wrote in message
news:Ax************@news2.central.cox.net...
I see weak reference on the .net api, but I do not see soft or phantom, are they supported on .net?


No. More seriously, neither are ReferenceQueues.

By the way, do you have a real use for PhantomReferences? I've never seen
one.
Nov 15 '05 #2
memememe,
System.WeakReference supports a short or long weak reference by a parameter
to the constructor. a short weak reference does not track resurrection of
the target object, a long weak reference tracks resurrection of the target
object.

There was a discussion about this in microsoft.public.dotnet.framework.clr
about September 4th 2003. If the following does not take you to the thread,
Search for a thread with a subject of "Soft and weak references".

http://groups.google.com/groups?hl=e...gbl%26rnum%3D1

Hope this helps
Jay

"memememe" <[rem]casolorz[rem]@hot[rem]mail.com> wrote in message
news:Ax************@news2.central.cox.net...
I see weak reference on the .net api, but I do not see soft or phantom, are they supported on .net?

Nov 15 '05 #3
im there with you, I have never seen anyone use phantom refs, I just wanted
to know if they are supported since I was explaining to my boss what java
has and why, and whether .net has that.

"Mike Schilling" <ms*************@hotmail.com> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl...

"memememe" <[rem]casolorz[rem]@hot[rem]mail.com> wrote in message
news:Ax************@news2.central.cox.net...
I see weak reference on the .net api, but I do not see soft or phantom,

are
they supported on .net?


No. More seriously, neither are ReferenceQueues.

By the way, do you have a real use for PhantomReferences? I've never seen
one.

Nov 15 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by Rod Billett | last post: by
9 posts views Thread by Dave | last post: by
9 posts views Thread by TB | last post: by
3 posts views Thread by John Nagle | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by zhoujie | last post: by
1 post views Thread by Marylou17 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.