|
-
Oct 10th, 2002, 01:21 PM
#1
Thread Starter
Registered User
How are objects destroyed in VB6?
Posed this one also in COM\ActiveX forum, sorry about this...
Anyone ideas about this one ?
I have a main app and two classes. The first class gets an ADO recordset from an Access2000 DB. The second class generates
a csv file from an ADO recordset.
So my main app asks class1 for a recordset and feeds it into
class2 which is working fine.
I am just wondering if the recordset object is being properly destroyed because it first gets instantiated in class 1 and then
passed by reference all over the project (sometimes using "local" references to the same recordset).
I saw in VB6 help that if you have multiple references to 1 object, the object gets released if you set the last ref. to nothing.
OK; but what about passing references ??
Does anyone have a clear explanation for this ?
THANKS,
Jukke
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|