How to Dispose a hidden Desktop via Automation

Java, C++, C#, Delphi... - Using the UNO bridges
Post Reply
srwhite
Posts: 7
Joined: Fri Oct 24, 2008 7:04 pm

How to Dispose a hidden Desktop via Automation

Post by srwhite »

Hi

When I open a document as Hidden using automation the Dispose() method on the Desktop object does not release the Desktop from memory. However if I open a document as Visible and then use the Dispose() method everything is released from memory.

How can I properly dispose all objects when opening documents as hidden without first resorting to making them visible?

Thanks,
Simon
OOo 3.0.X on MS Windows Vista
User avatar
Villeroy
Volunteer
Posts: 31363
Joined: Mon Oct 08, 2007 1:35 am
Location: Germany

Re: How to Dispose a hidden Desktop via Automation

Post by Villeroy »

Please, edit this topic's initial post and add "[Solved]" to the subject line if your problem has been solved.
Ubuntu 18.04 with LibreOffice 6.0, latest OpenOffice and LibreOffice
srwhite
Posts: 7
Joined: Fri Oct 24, 2008 7:04 pm

[SOLVED]: How to Dispose a hidden Desktop via Automation

Post by srwhite »

I also found my answer. If I use the Desktop.Terminate() method it does release the desktop from memory.
OOo 3.0.X on MS Windows Vista
Post Reply