Re: Speeding up data crunching using IDL_IDLBridge with asychronous execution [message #85274 is a reply to message #85177] |
Mon, 22 July 2013 05:02   |
Heinz Stege
Messages: 189 Registered: January 2003
|
Senior Member |
|
|
On Wed, 10 Jul 2013 13:08:50 -0600, David Fanning wrote:
> Chip Helms writes:
>
>> o = obj_new('IDL_IDLBridge')
>> o->Cleanup
>
> This is too friggin' weird!
>
> IDL> o = obj_new('IDL_IDLBridge')
> IDL> print, obj_valid(o)
> 1
> IDL> o->Cleanup
> IDL> print, obj_valid(o)
> 0
>
> Not suppose to be possible to do that. :-)
>
> But, I can even do it with my own objects:
>
> IDL> obj = cgMap()
> IDL> print, obj_valid(obj)
> 1
> IDL> obj -> Cleanup
> IDL> print, obj_valid(obj)
> 0
>
> What next!?
>
> Cheers,
>
> David
I know, I'm a little bit late. I just stumbled over the related part
of the documentation: "To destroy objects, instead of calling
OBJ_DESTROY, obj, you can now do: myContainer.Cleanup"
I found this under the headline "Object Syntax" in the section "What's
New in IDL 8.0" within the IDL 8.0 Help.
The new syntax was introduced in Version 8.0. May be a good idea not
to use it, if you want to keep your code compatible with earlier
versions.
Heinz
|
|
|