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

Home » Public Forums » archive » Re: Tough System Variable Question for the IDL Gurus
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: Tough System Variable Question for the IDL Gurus [message #68622 is a reply to message #68621] Wed, 11 November 2009 17:45 Go to previous messageGo to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
ben.bighair writes:

> Why do you want to remove a system variable?

I don't know. I don't always come up with the questions.

> Would making the system variable a pointer or object work? At least
> then you could destroy/dereference them. I recall that I used an
> object as a system variable for the old "CoolHelp" thingy. And
> another thing, you *are* an IDL guru.

Yeah, but a guru who didn't know the answer. :-)

Maybe a pointer *will* work.

IDL> defsysv, '!tester', Ptr_New(5)
IDL> help, !tester
<Expression> POINTER = <PtrHeapVar795>
IDL> help, *!tester
<PtrHeapVar795> LONG = 5
IDL> ptr_Free, !tester
IDL> !tester = Ptr_New(/ALLOCATE_HEAP)
IDL> help, /heap
Heap Variables:
# Pointer: 1
# Object : 0

<PtrHeapVar2> UNDEFINED = <Undefined>

Thanks for the tip and the fish story, Ben! :-)

Cheers,

David



--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: Use the device fonts for Ytitle on screen
Next Topic: _extra keyword

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

Current Time: Wed Oct 08 19:03:56 PDT 2025

Total time taken to generate the page: 0.00175 seconds