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

Home » Public Forums » archive » Re: Memory Cleanup-- Messy structure
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: Memory Cleanup-- Messy structure [message #71400 is a reply to message #71389] Wed, 16 June 2010 14:53 Go to previous messageGo to previous message
MarioIncandenza is currently offline  MarioIncandenza
Messages: 231
Registered: February 2005
Senior Member
CR,

Thanks much. This turned out, of course, to be PEBKAC. UNDEFINE does
in fact do its job, if you know how to use it. However, I did find out
this one nugget: You can see that from the way the array is created
and populated, it looks like it will have nested pointers. However, if
you do it the other way:

IDL> STRUCT1=CREATE_STRUCT("PTR1",PTR_NEW(/ALLOC));
IDL> STRUCTALL=REPLICATE(STRUCT1,N)
IDL> FOR I=0,N-1 DO *(STRUCTALL[I].PTR1)=ALLDATA[*,I]

You will find that there is only one pointer, which after that
operation points to the last data tested = ALLDATA[*,N-1].

Later on I will post the fancy new routine that led me to have to
solve this problem!

Thanks,

--Edward H.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Memory Cleanup-- Messy structure
Next Topic: SAVE compress and Gzip

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

Current Time: Wed Oct 08 15:16:57 PDT 2025

Total time taken to generate the page: 0.00563 seconds