Solved

To Free Ole Object

Posted on 1998-11-24
2
256 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
Comment Utility
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
Comment Utility
Sorry, should have compiled the answer first - using variants it should be

  V := null;


Regards,

John.


0

Featured Post

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

Suggested Solutions

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…
Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

771 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

7 Experts available now in Live!

Get 1:1 Help Now