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

Home » Public Forums » archive » Re: .Reset_Session in a script
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: .Reset_Session in a script [message #48950] Wed, 07 June 2006 16:35 Go to previous message
Chris[2] is currently offline  Chris[2]
Messages: 39
Registered: August 2003
Member
Just as an aside, if you're doing this in IDL63, you could use the
IDL_IDLBridge object to run each script in a separate "clean" session of
IDL. This is also useful when you want to build multiple .sav files (with
IDL code) and you need to have a clean IDL session for each .sav file.

So for example,

o=Obj_New('IDL_IDLBridge')
o->Execute, "myscript, 'datafile1' "
Obj_Destroy, o
o=Obj_New('IDL_IDLBridge')
o->Execute, "myscript, 'datafile2' "
Obj_Destroy, o

If you use the /NOWAIT keyword then you could even have them all executing
simultaneously (although then you wouldn't want to destroy the object until
it finished...)

-Chris
ITT Visual Information Solutions


"toddbranch" <branch@lanl.gov> wrote in message
news:1149623443.901074.325330@g10g2000cwb.googlegroups.com.. .
> Hey all,
>
> Sorry to be back for help so soon.
>
> I have written a script to automatically run all of my data sets
> through my program. In my program, I define a few structures. I
> usually run the command .reset_session in between runs of my data
> because IDL gets mad because my code redefines the same structure. IDL
> won't let me run the .reset_session command in my script. Any ideas?
>
> Thanks a lot for the help,
> Branch
>
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: IDL and the RAM memory
Next Topic: IDLgrLegend and ENABLE_FORMATTING

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

Current Time: Fri Oct 10 01:12:00 PDT 2025

Total time taken to generate the page: 1.99871 seconds