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

Home » Public Forums » archive » temporary() pitfall
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
temporary() pitfall [message #23003] Mon, 18 December 2000 05:12
Jaco van Gorkom is currently offline  Jaco van Gorkom
Messages: 97
Registered: November 2000
Member
Hi,

I use the temporary(MyArray) function to conserve memory when doing
operations on large arrays. This works fine, except if there is still
not enough memory to do the operation. Then IDL stops execution, tells
me there is not enough memory, and MyArray is undefined. IDL follows the
documentation here, but I lose my array contents!

Does anyone know of a way
- to test in advance whether the operation is going to fail, or
- to recover the contents of my original array?

The operation I do varies, today I was trying to do
MyArray = transpose(temporary(MyArray))
acting on the results of a rather lengthy computation.

Thanks for any tips,
Jaco

------------------------------
Jaco van Gorkom gorkom@rijnh.nl
FOM-Instituut voor Plasmafysica Rijnhuizen
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Polygon hull
Next Topic: vector font question

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

Current Time: Fri Nov 28 07:08:58 PST 2025

Total time taken to generate the page: 0.01463 seconds