Top "Weak-references" questions

A weak reference is a one that makes no claim of ownership.

Does WeakReference make a good cache?

i have a cache that uses WeakReferences to the cached objects to make them automatically removed from the cache in …

c# .net caching garbage-collection weak-references
I have a circular reference. How can I create a weak reference in Objective-C?

I'm working on an iPhone application. I have an object of class Row that needs to release numerous objects of …

objective-c iphone weak-references circular-reference
Is there a way to do a WeakList or WeakCollection (like WeakReference) in CLR?

Using a List<WeakReference> will not work as I want. What I want is for WeakReferences to be …

.net garbage-collection weak-references
Weak references - how useful are they?

So I've been mulling over some automatic memory management ideas lately - specifically, I've been looking at implementing a memory …

weak-references
why use WeakReference on android Listeners?

I am working on a large code base, and see in many places this type of code: public static class …

android weak-references
HashMap with weak values

I'm implementing a cache for Objects stored persistently. The idea is: Method getObjectFromPersistence(long id); ///Takes about 3 seconds Method getObjectFromCache(…

java android hashmap weak-references
How do weak and strong references look like in objective-c?

Wikipedia states "In computer programming, a weak reference is a reference that does not protect the referenced object from collection …

iphone objective-c weak-references strong-references
weakref list in python

I'm in need of a list of weak references that deletes items when they die. Currently the only way I …

python weak-references
android : SoftReference / WeakReference example

I am getting OutOfMemoryError on my application. When i went through some tutorials, i came to know that, I can …

android weak-references soft-references
weak reference to object containing a nested strong reference, and garbage collection

Suppose I have a weak reference to a car which has an ordinary (strong) reference to an engine. No other …

java garbage-collection weak-references