Solved

To Free Ole Object

Posted on 1998-11-24
2
259 Views
Last Modified: 2010-04-04
In my program I'm using
var V : Variant;

V := GetActiveOleObject('Word.Basic');

Should I free this object and how can I do this?
Will V.Free do this?

0
Comment
Question by:jpenev
  • 2
2 Comments
 

Accepted Solution

by:
john_m earned 30 total points
ID: 1347775
Setting

  V := nil;

should do it. In doing this the OLE object decrements it's internal reference count, and if the referece count is zero then it will be released by the operating system.
0
 

Expert Comment

by:john_m
ID: 1347776
Sorry, should have compiled the answer first - using variants it should be

  V := null;


Regards,

John.


0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
In this video I am going to show you how to back up and restore Office 365 mailboxes using CodeTwo Backup for Office 365. Learn more about the tool used in this video here: http://www.codetwo.com/backup-for-office-365/ (http://www.codetwo.com/ba…
Hi friends,  in this video  I'll show you how new windows 10 user can learn the using of windows 10. Thank you.

861 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

28 Experts available now in Live!

Get 1:1 Help Now