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

Home » Public Forums » archive » Re: Changing elements in structures
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: Changing elements in structures [message #18301] Thu, 16 December 1999 00:00 Go to previous message
m218003 is currently offline  m218003
Messages: 56
Registered: August 1999
Member
In article <3857A92E.1DB64CF0@ssec.wisc.edu>,
Liam Gumley <Liam.Gumley@ssec.wisc.edu> writes:
>
> ;- Define the structure
> info = {filename:'', data_ptr:ptr_new(1.0)}
>
> ;- After you've read the data, store it in the structure
> data = dist(256)
> *info.data_ptr = data
>
> ;- Use the data
> data = *info.data_ptr
> tvscl, data
>
> Cheers,
> Liam.
>
And then you loose your memory ;-)

Don't forget to call PTR_FREE,info.data_ptr at some point. Oh! I forgot,
with IDL 5.3 you can now use .RESET_SESSION ...

Martin

--
[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[ [[[[[[[
[[ Dr. Martin Schultz Max-Planck-Institut fuer Meteorologie [[
[[ Bundesstr. 55, 20146 Hamburg [[
[[ phone: +49 40 41173-308 [[
[[ fax: +49 40 41173-298 [[
[[ martin.schultz@dkrz.de [[
[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[ [[[[[[[
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: Widget Frame Attributes on Linux
Next Topic: discrete cosine transform

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

Current Time: Fri Oct 10 12:41:51 PDT 2025

Total time taken to generate the page: 1.35846 seconds