Top "Weak-references" questions

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

How does weak_ptr work?

I understand how to use weak_ptr and shared_ptr. I understand how shared_ptr works, by counting the number …

c++ boost weak-references tr1 weak-ptr
Understanding Java's Reference classes: SoftReference, WeakReference, and PhantomReference

Can someone explain the difference between the three Reference classes (or post a link to a nice explanation)? SoftReference > …

java reference weak-references phantom-reference soft-references
How to delete every reference of an object in Python?

Supose you have something like: x = "something" b = x l = [b] How can you delete the object only having one …

python reference garbage-collection weak-references del
Using Java's ReferenceQueue

Do SoftReference and WeakReference really only help when created as instance variables? Is there any benefit to using them in …

java memory garbage-collection weak-references soft-references
Bitmap, Bitmap.recycle(), WeakReferences, and Garbage Collection

AFAIK on Android, it is recommended to reference Bitmap objects as WeakReferences in order to avoid memory leaks. When no …

android memory-leaks garbage-collection bitmap weak-references
Using __block and __weak

I've read over this thread: What does the "__block" keyword mean? which discusses what __block is used for but I'm …

objective-c objective-c-blocks weak-references
WeakReference/AsyncTask pattern in android

I have a question regarding this simple frequently occurring situation in android . We have a main activity , we invoke an …

java android android-asynctask weak-references
Pros and Cons of Listeners as WeakReferences

What are the pros and cons of keeping listeners as WeakReferences. The big 'Pro' of course is that: Adding a …

java design-patterns observer-pattern weak-references
How do events cause memory leaks in C# and how do Weak References help mitigate that?

There are two ways (that I know of) to cause an unintentional memory leak in C#: Not disposing of resources …

c# .net events weak-references
Good implementation of weak dictionary in .Net

Where can I find good implementation of IDictionary which uses weak references inside? Dictionary should be holding only weak references …

.net dictionary weak-references