The returned object is typically a global object, so if you dispose it, then you can not get a new one until you restart OpenOffice.org. I found this while playing with some database stuff.
Jahn, Ray (R.) wrote:


Thanks for the advice provided by Kohei. I found useful content in both the DeveloperGuide and api.openoffice.org/docs/.../XFunctionAccess.html.

I now have a few more questions regarding the proper memory management.  Would 
appreciate advice on more reading assignment.

Is the object returned by createUnoService() a local object?  A global object?  
An object pointer (handle, in MS jargon)?  Is disposal operation needed to 
prevent memory leakage?  Can the same service be created multiple times, due to 
successvie calls from sheet cells to the user script routine?  Would there be 
efficiency concern if the same service is created repetitively?  (related 
questions on object integrity and memory management go on).

Thanks again.

Ray

-----Original Message-----
From: Kohei Yoshida [mailto:[EMAIL PROTECTED]
Sent: Sunday, April 24, 2005 03:44 PM
To: [email protected]; Jahn, Ray (R.)
Subject: 1.9.95 script calling Calc built-in functions

I've posted a solution to a similar question in the past, which you can find 
here:

http://sc.openoffice.org/servlets/ReadMsg?list=dev&msgNo=1391

 ... (snipped)

HTH,

Kohei

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





-- Andrew Pitonyak My Macro Document: http://www.pitonyak.org/AndrewMacro.sxw My Macro Book: http://www.hentzenwerke.com/catalog/oome.htm Free Info: http://www.pitonyak.org/oo.php


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to