Re: DELVAR in IDL7.0 for windows [message #57582] |
Mon, 17 December 2007 06:22  |
Spon
Messages: 178 Registered: September 2007
|
Senior Member |
|
|
On Dec 17, 1:57 pm, David Fanning <n...@dfanning.com> wrote:
> Spon writes:
>> maybe it's just something about the way I've got things set up, but I
>> can't seem to get Variable Watch to update correctly after I use
>> DELVAR to delete more than one variable at a time since I upgraded to
>> v7.0
> Yes, looks like a bug to me. Have you reported it?
>
> Cheers,
>
> David
I've sent a report to ITT. I can mail you one using your report
template once I get a response from them. That way I can fill in all
the required fields :-)
Take care,
Chris
|
|
|
Re: DELVAR in IDL7.0 for windows [message #57584 is a reply to message #57582] |
Mon, 17 December 2007 05:57   |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
Spon writes:
> maybe it's just something about the way I've got things set up, but I
> can't seem to get Variable Watch to update correctly after I use
> DELVAR to delete more than one variable at a time since I upgraded to
> v7.0 - is anyone else having this problem?
>
>> a=1&b=2
>> delvar,a,b
> ; check variable watch -> still says b is defined as value 2, type INT
>> help,b
> IDL> B UNDEFINED = <Undefined>
>
> As far as I can tell this seems to happen to all parameters that
> DELVAR is called with after the first one, which is handled correctly.
> Can anyone replicate this?
Yes, looks like a bug to me. Have you reported it?
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.")
|
|
|
Re: DELVAR in IDL7.0 for windows [message #57719 is a reply to message #57582] |
Mon, 17 December 2007 11:14  |
jdshaw
Messages: 7 Registered: October 2007
|
Junior Member |
|
|
Hi guys,
Here is the originalmessage I sent to ITT:
--- Original Web Submission ---
Since upgrading to IDL 7.0, delvar on the command line only deletes
the first variable listed and ignores the rest. This is rather
annoying.
If var1, var2, var3 are defined and we do DELVAR, var1, var2, var3
only var1 is deleted, we must use delvar seperately for each variable.
Is there a fix?
------- ITT RESPONSE -----
Actually, all three variables are deleted. The problem is with the
logic of the Variables View window, which is not updating properly.
That is, after your DELVAR call, you will see with "IDL> HELP" that
all three variables are no longer listed in the HELP output. Also, the
calls "IDL> print, var1" or "IDL> print, var2" will both produce
"Variable is undefined" errors. In short, the underlying functionality
of the call to the IDL process is fine, but the associated process
governing the IDL Workbench has a bug.
I have entered new report C.R.I.D. #50135 ("After a DELVAR Call with
Multiple Args, Only the First Arg Is Removed from the Variables View")
in our bug-tracking system. Until then, the only workaround I can
suggest is to remember to run DELVAR with just one arg per execution.
Sorry for this temporary inconvenience.
|
|
|