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

Home » Public Forums » archive » delvar v/s reset_session
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
delvar v/s reset_session [message #22099] Mon, 23 October 2000 00:00 Go to previous message
kashyap is currently offline  kashyap
Messages: 26
Registered: April 1993
Junior Member
Puzzle: Somehow, using .RESET_SESSION in between DELVARs seems
to confuse the IDL environment. Now, I believe using DELVAR
inside even a main program is frowned upon (I don't know why),
but this seems very bizarre.

Here's a simple test program:

> cat test.pro
a=1 & b=2 & c=3
print,a,b,c
delvar,a,b
end

and running it repeatedly, resetting the session in between,
quickly starts producing garbage. Whose fault is this --
DELVAR's, .RESET_SESSION's, or mine?

IDL> print,!version
{ sparc sunos unix 5.3 Nov 11 1999}
IDL> .run test
% Compiled module: $MAIN$.
1 2 3
IDL> .reset_session
IDL> .run test
% Compiled module: $MAIN$.
1 3 3
IDL> .reset_session
IDL> .run test
% Compiled module: $MAIN$.
3 2 3
% Internal error: Deleting variable.
% Execution halted at: $MAIN$ 4 /fubar/SCAR/pro/.undone/test.pro
IDL>

Any idea what's going on?

Thanks,
Vinay

--
____________________________________________________________ __________________
kashyap@head-cfa.harvard.edu 617 495 7173 [CfA/P-146] 617 496 7173 [F]
[Message index]
 
Read Message
Read Message
Previous Topic: IDL/Wave alternatives
Next Topic: NO MORE GIF READ OR WRITE IN IDL 5.4

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

Current Time: Sat Oct 11 09:30:25 PDT 2025

Total time taken to generate the page: 0.96253 seconds