I find that some of my scripts work well when used once in a while.
But when using the script back to back a handful of times, I find indd/the script crashes more frequently.
Should I be destroying my variables at the end of every script?
Does anyone make this a common practice?
Any specific functions you find effective?
Could there be a totally unrelated reason this is happening?
Thanks for your input!!
From the scripting guide.... "By default, when you run an InDesign JavaScript, the script is interpreted and executed by the “main”
ExtendScript engine, which is destroyed when the script completes execution. Script objects created by
the script do not persist."
Sounds like it's just my station's capabilities?
Could you upload a copy of the crash report to http://pastebin.com/ and post a link to it? I'd like to see it.
Though:
I just get the spinner...
Generally this is termed a "hang," not a "crash." A crash is when the program terminates itself (or is terminated by the OS).
I eventually forc quit it.. which eventually brings on the crash report.
This is abnormal behavior. Normally force qutting does not lead to a crash report. I wonder what is different in your case. That is somewhat interesting.
North America
Europe, Middle East and Africa
Asia Pacific