Page 1 of 1

How to Dispose a hidden Desktop via Automation

Posted: Fri Oct 24, 2008 7:08 pm
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

Re: How to Dispose a hidden Desktop via Automation

Posted: Fri Oct 24, 2008 8:34 pm
by Villeroy

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

Posted: Sat Oct 25, 2008 3:51 am
by srwhite
I also found my answer. If I use the Desktop.Terminate() method it does release the desktop from memory.