OpenOffice.org Forum at OOoForum.orgThe OpenOffice.org Forum
 
 [Home]   [FAQ]   [Search]   [Memberlist]   [Usergroups]   [Register
 [Profile]   [Log in to check your private messages]   [Log in

dispose method

 
Post new topic   Reply to topic    OOoForum.org Forum Index -> OpenOffice.org Macros and API
View previous topic :: View next topic  
Author Message
mobi-doc
OOo Enthusiast
OOo Enthusiast


Joined: 30 Jan 2007
Posts: 130
Location: Thessaloniki

PostPosted: Sat Mar 17, 2007 8:31 am    Post subject: dispose method Reply with quote

A lot of UNO services have the dispose() method. I use such services such as connections, statememnts, resultsets, documents,... in OO BASIC.

Is there a general rule of when to dispose (if it is really nesessary) such objects?

Thanks in advance.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Mark B
Super User
Super User


Joined: 16 Feb 2007
Posts: 852
Location: Lincolnshire, UK

PostPosted: Sun Mar 18, 2007 7:53 am    Post subject: Reply with quote

Hi

The answer, of course, depends on exactly what you're doing and how much memory you're likely to tie up. However, the easiest rule is - if there's a dispose method then use it.

Mark
_________________
Mark B's Articles
Back to top
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    OOoForum.org Forum Index -> OpenOffice.org Macros and API All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group