OpenDocument4all - Info and tools about OpenDocument
Sunday, 05 February 2012
Home arrow Forum
Forum Statistics
Total user: 89
Total message: 179
Main Menu
Home
My Blog
AODL - Project
AODC - Project
OO Development & Info
Forum
About OpenDocument ...
Search
News
Contact Us
Login Form





Lost Password?
No account yet? Register
Sourceforge.net

SourceForge.net - Goto the project homepage
Project site on SF.net

 

Demand OpenDocument

 

Countomat Webcounter und Webstatistik (Statistik & Logfileanalyse, Counter)

OpenDocument4all-Forum

 
Resource leak?
Date: 2007/04/13 23:05 By: Udo Liess Status: User  
Karma: 0  
Fresh Boarder

Posts: 1
graphgraph
I tried several ways to use OOo-calc for calculations from a C# program. In every case (OLE, Uno/CLI, CLI_UNO_EX) soffice did not stop but blew up.
Let's focus on the best way CLI_UNO_EX:
After I run
Code:

 namespace OOoTest {     class Program     {         static void Main(string[] args)         {             CLI_UNO_EX.Api.Environment.Bootstrap.bootstrap();         }     } }


the processes soffice.bin and soffice.exe were started but not stoped. Every run increases the memory used by soffice.bin.

But it's getting worse:
Code:

 namespace OOoTest {     class Program     {         static void Main(string[] args)         {             for (int i 0<= 1000; ++i)             {                 CLI_UNO_EX.Api.Environment.Bootstrap.bootstrap();                 System.Console.WriteLine(i);             }         }     } }


I dont reach 1000. The program hangs before!
WHY?

Does anyone have an example that does release all resources?

Thanks,

Udo

Post edited by: udol, at: 2007/04/13 23:15
The administrator has disabled public write access.

Quick jump
Download area
Who's Online
We have 27 guests online
Polls
Should AODL and AODC also implement export as PDF and RTF?
 
Popular
© 2005 MamboZ. All rights reserved.