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; i <= 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.