comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Destroying objects
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Destroying objects [message #37981] Wed, 11 February 2004 14:26 Go to previous message
Michael Wallace is currently offline  Michael Wallace
Messages: 409
Registered: December 2003
Senior Member
I have just started working with the IDL-Java Bridge and object
programming in general and have a very basic question. Is there a way
to destroy objects that get created which you haven't explicitly created
yourself? Here's a simple example of the problem:


; Method 1
; Get the number of columns of a Java ResultSet

cols = (result_set -> getMetaData()) -> getColumnCount()
obj_destroy, result_set

help, /heap ; shows an object associated with ResultSetMetaData
; but how do you destroy it??


; Method 2
; Get the number of columns of a Java ResultSet

meta_data = result_set -> getMetaData()
cols = meta_data -> getColumnCount()
obj_destroy, meta_data
obj_destroy, result_set

help, /heap ; doesn't show any extra objects


So, is there a way to use Method 1, but still have a way to destroy the
extra object that gets created? There's no variable name associated
with it, so how can I use obj_destroy, if at all? Will I be forced to
go by Method 2 and use only one '->' per line? I was so hopeful I could
be lazy and use multiple '->' per line.... *sigh*

Mike
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Destroying objects
Next Topic: Re: shading/outlining on surface plot

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Thu Oct 09 15:30:19 PDT 2025

Total time taken to generate the page: 0.24143 seconds