SimileScript process hangs if I don't show the model window

In my TCL script, I have the following:

modelWin UseMRE false
# modelWin Show
modelWin Open "./model.pl"
modelWin Run

I have the "Show" window commented out, as I'm trying to run the simulation without actually displaying it on the screen. This runs successfully, but when I try to exit the script after completing, the process hangs and does not exit successfully. Is there an explicit way to exit if I don't show the model window? Or do I need to show the model window in order to execute and exit successfully?

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

SimileScript process hangs if I don't show the model window

I'm using Windows XP. Where would I find this log if Simile has created it? I do have an 'exit' statement at the bottom, it's not attached to any objects or anything; i'm not calling "modelWin Exit" or anything, if there is such a thing.

This could be related to error handling, or perhaps this is a separate issue. If an error comes up, is there a way to handle that (like Exception handling in java)? I don't want a dialog box to be shown to the screen, but instead I'd like to write the error to a file and otherwise fail silently.

SimileScript process hangs if I don't show the model window

I just tried this out, and I find that I get the messy shutdown (i.e., simile leaves a logfile and asks to restore from it) if you exit the script by typing ctrl-D. However if you use the 'exit' command it exits cleanly. It does not seem to make any difference whether the model window is displayed.

This might be an OS-specific thing. I'm using Linux -- what are you using?
--Jasper