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

Home » Public Forums » archive » Releasing temporary variables created with IDL_MakeTempArray()
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Releasing temporary variables created with IDL_MakeTempArray() [message #90709] Wed, 01 April 2015 04:36 Go to previous message
dg86 is currently offline  dg86
Messages: 118
Registered: September 2012
Senior Member
Dear Folks,

A DLM I've written in C uses
IDL_MakeTempArray()
to allocate an array, let's call it ARR, that gets passed back to IDL.
I'd like to release that temporary variable in IDL without having
to call a routine in the DLM that invokes IDL_Deltmp() .

1. Can I just do something like
IDL> ARR = 0
to release the temporary variable? Or is there another IDL-based method?

2. At a deeper level, say that I've created a pointer to ARR with
IDL> PARR = ptr_new(ARR, /no_copy)
Will freeing the pointer with
IDL> ptr_free, PARR
also release the temporary variable?

3. Is there a way to see how many temporary variables I have checked
out? Is there a limit to that number? What's the limit?

Many thanks,

David
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: fg Margin and Layout keyword problems
Next Topic: dfourt

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

Current Time: Wed Oct 08 15:55:56 PDT 2025

Total time taken to generate the page: 0.00499 seconds