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

Home » Public Forums » archive » IDL 8.0.1 crashes
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: IDL 8.0.1 crashes [message #80866 is a reply to message #74229] Thu, 19 July 2012 12:02 Go to previous message
Leonardo R. Sbaraini is currently offline  Leonardo R. Sbaraini
Messages: 26
Registered: October 2007
Junior Member
The new Garbage collector detonated my old programs.

Example ?

Inside routine r2 getting an object-attribute from class, and then returning it to r1. The class cleanup will be called after r2 scope.

;----------------------------------------
pro class_define

struct = {class, obj : obj_new() }

end

;----------------------------------------
pro Class::Init

self.obj = obj_new('GenericClass')

end

;----------------------------------------
pro r2, obj

c = obj_new('class')
c->Get, obj

help, obj

end

;----------------------------------------
pro r1

r2, obj

help, obj

end



;----------------------------------------
OLD IDL:

OBJ OBJREF = <ObjHeapVar2(CLASS_OBJECT)>
OBJ OBJREF = <ObjHeapVar2(CLASS_OBJECT)>


SAME CODE, RUNNED IN THE NEW IDL

OBJ OBJREF = <ObjHeapVar2(CLASS_OBJECT)>
OBJ OBJREF = <ObjHeapVar2>


-----> FAIL <-----

Question: There is a compilation option ?
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: Removing and Replacing Nan values in IDL
Next Topic: Coyote Library Updates

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

Current Time: Sat Oct 11 11:42:38 PDT 2025

Total time taken to generate the page: 0.00704 seconds