Openoffice ole object Free

Java, C++, C#, Delphi, ??? - Using the UNO bridges

Openoffice ole object Free

Postby Rosinha » Tue Mar 24, 2015 2:10 pm

Hello,
I have created an openoffice ole object from my application using Delphi.
That is shown below:-

OpenOffice : Variant;

OpenOffice := CreateOleObject('com.sun.star.ServiceManager');

It is getting created successfully.But when i try to free it,it still remains in task manager.
I tried the following commands to free openoffice but with no success:

varclear(openoffice);
FreeAndNil(openoffice);
openoffice := Unassigned;

Is there any other solution for this?

Thank you in advance.
OpenOffice 4.0.1 on Windows XP
Rosinha
 
Posts: 6
Joined: Mon Jul 07, 2014 1:27 pm

Re: Openoffice ole object Free

Postby Charlie Young » Tue Mar 24, 2015 5:39 pm

I'm not sure how this stuff works in Delphi, but you might try something like OpenOffice.dispose, or however one executes a method. I also assume the variable names are case sensitive, and your example is inconsistent in that regard.
Apache OpenOffice 4.1.1
Windows XP
User avatar
Charlie Young
Volunteer
 
Posts: 1559
Joined: Fri May 14, 2010 1:07 am

Re: Openoffice ole object Free

Postby B Marcelly » Tue Mar 24, 2015 9:29 pm

Hi,
Get from my personal web site : Delphi 7 OOo tool
The zip file contains units with helper routines, examples, and a HowTo document. Read it.

You should have posted your question in section : Macros and UNO API > External Programs
Bernard

OpenOffice.org 1.1.5 / Apache OpenOffice 4.1.1 / LibreOffice 5.0.5
MS-Windows 7 Home SP1
B Marcelly
Volunteer
 
Posts: 1160
Joined: Mon Oct 08, 2007 1:26 am
Location: France, Paris area

Re: Openoffice ole object Free

Postby floris v » Wed Mar 25, 2015 12:51 am

Maybe the code that deallocates the memory used by the OO process doesn't also inform Windows that OO has been closed?
See for instance http://docs.embarcadero.com/products/ra ... bject.html , specifically

Code: Select all   Expand viewCollapse view
  { Closes Microsoft Word. }
  WordApp.Quit;
AOO 4.1.6 op Linux Mint
If your problem has been solved or your question has been answered, please edit the first post in this thread and add [Solved] to the title bar.
Nederlandstalig forum
User avatar
floris v
Moderator
 
Posts: 4041
Joined: Wed Nov 28, 2007 1:21 pm
Location: Netherlands


Return to External Programs

Who is online

Users browsing this forum: No registered users and 2 guests