![]() |
#35
|
|||
|
|||
![]()
I see your correction, but you still left out an important thing:
Quote:
I have to come back on the example in my file for Run11_clsTest(). It actually doesn't show that the class got destroyed. I made an attempt to obtain the VarPtr and ObjPtr for Class1, but it didn't work therefore I left it. Now I figured it out: Class1: Code:
Public Sub Class_Initialize() Debug.Print "Class1 is initialized" lng_objcls1 = ObjPtr(Me) lng_varcls1 = VarPtr(Me) pointerToSomething "objClass1", lng_varcls1, lng_objcls1, coBytes End Sub Code:
lng_objcls1 = ObjPtr(Class1) Checking on these datas afterwards, it shows properly that the class gets terminated: Mod11_Class: Code:
Sub Run11_clsTest() Do_Header "Running Test_Class..." Test_Class DoEvents Debug.Print "After Runtime" pointerToSomething "objcls1", lng_varPtr, lng_objPtr, coBytes pointerToSomething "objClass1", lng_varcls1, lng_objcls1, coBytes End Sub Quote:
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Wierd "script code" in a downloaded .doc file | CNBarnes | Word | 2 | 10-18-2012 02:07 AM |
![]() |
krishnaoptif | Word VBA | 9 | 06-22-2012 05:08 AM |
![]() |
Jamal NUMAN | Word | 2 | 07-03-2011 03:11 AM |
Rules and Alerts: "run a script"? | discountvc | Outlook | 0 | 06-15-2010 07:36 AM |
An "error has occurred in the script on this page" | decann | Outlook | 8 | 09-03-2009 08:54 AM |