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

Home » Public Forums » archive » Re: Turn Object Automatic Clean-up Off?
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Turn Object Automatic Clean-up Off? [message #81474 is a reply to message #81466] Thu, 20 September 2012 08:07 Go to previous messageGo to previous message
Lajos Foldy is currently offline  Lajos Foldy
Messages: 176
Registered: December 2011
Senior Member
On Thursday, September 20, 2012 3:49:48 PM UTC+2, mschellens wrote:


> Out of curiosity:
>
> Could you please post an example code where this problem is exposed?
>
> How can an object which has no references any more be of relevance in an IDL program?
>
> I have a lack of imagination here.

Earlier, lost references could be restored. Try this example in a fresh IDL session:

; test.pro begin
pro s::print
print, "I'm fine!"
end

pro test
s={s, l:0}
o1=obj_new('s')
o1=0 ; lost reference
o2=obj_valid(1, /cast) ; restored
o2->print
end
; test.pro end

IDL> print, !version
{ x86_64 linux unix linux 7.0 Oct 25 2007 64 64}
IDL> test
I'm fine!
IDL>

IDL> print, !version
{ x86_64 linux unix linux 8.2 Apr 10 2012 64 64}
IDL> test
% Unable to invoke method on NULL object reference: <OBJREF (<NullObject>)>.


regards,
Lajos
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: A new IDL Product Manager
Next Topic: Is MAP procedure in IDL8.2 BROKEN?

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

Current Time: Sun Oct 12 09:27:30 PDT 2025

Total time taken to generate the page: 0.72065 seconds