Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to remove an instance of COM object from memory?
Message
From
28/03/2004 19:49:04
 
General information
Forum:
Visual Basic
Category:
COM, DCOM and OLE automation
Miscellaneous
Thread ID:
00890297
Message ID:
00890310
Views:
18
Try

loObject = Null
Release loObject

The first line (loObject = Null) may be unnecessary, but XL does funny things sometime, so I've made myself get used to using both lines.

Alan

>HI
>In a program I create an instance of registered COM object, and assign a reference to the local variable.
>loObject = CREATEOBJECT(“Component.ComponentClass”)
>After the program is finished VFP still keep instance of the COM object in a memory. So next time I run my program it uses previously created object, instead of creating new one.
>What should be done to avoid this behavior?
>
>TIA
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform