VBcoders Browse New Submit Contact Sign In

No account? Register free

Forgot password?

Weak References to Avoid Memory Leaks

Rakov  (3 Submissions)   Windows API Call/Explanation   VB 6.0   Intermediate   Fri 27th January 2017   Tue 9th February 2021

"Weak references" in VB6 means uncounted references / pointers. Circular references can cause memory leaks if using ordinary reference variables. This class, cls_WeakRef, gives you an easy way to employ uncounted references. The technique comes from Bruce McKinney's book Hardcore Visual Basic; I've just wrapped it in a class for ease of use.

Rate Weak References to Avoid Memory Leaks (3(3 Vote))

Download Weak References to Avoid Memory Leaks

Weak References to Avoid Memory Leaks Comments

No comments yet — be the first to post one!

Post a Comment

0/1000 characters