VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



Weak References to Avoid Memory Leaks

by Rakov (3 Submissions)
Category: Windows API Call/Explanation
Compatability: VB 6.0
Difficulty: Intermediate
Originally Published: Fri 27th January 2017
Date Added: Tue 9th February 2021
Rating: (1 Votes)

"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

Download Weak References to Avoid Memory Leaks

Download Weak References to Avoid Memory Leaks (14 KB)

Weak References to Avoid Memory Leaks Comments

No comments have been posted about Weak References to Avoid Memory Leaks. Why not be the first to post a comment about Weak References to Avoid Memory Leaks.

Post your comment

Subject:
Message:
0/1000 characters