Solved

To Free Ole Object

Posted on 1998-11-24
2
265 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
There's a multitude of different network monitoring solutions out there, and you're probably wondering what makes NetCrunch so special. It's completely agentless, but does let you create an agent, if you desire. It offers powerful scalability …
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…
Suggested Courses
Course of the Month3 days, 21 hours left to enroll

630 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