This has nothing to do with Adobe software. This is a system error and usually indicates problems with missing DLLs or other such stuff. Could have been a Windows update or some otehr programs.... Impossible to tell from a distance. Check your Windows event viewer for more concrete info.
Just to deeper explain...
This error shows ONLY if I had run this script and ONLY when I try to close application (InCopy). Doesn't matter if 1 minute or few hours later.
OK, just to more deeper explain,
From my debugging moves looks like there is a question about #targetengine "session" vs. window ("palette") vs. open.file
The last thing script do is showing find results in window "palette" and allow user to open chosen file from list box.
(as I wrote, there is no errors when I run script, use a list from "palette" to open file (files), close "palette" or keep it opened, use InCopy for further purpose.)
Error is shown when I close InCopy, but...
1. When I did not open any doc from "palette" - there is no error.
2. When I opened some file - doesn't matter if I closed it, left open, left "palette" open or close - and try to quit application - error is shown.
So, and thats a beginner question, if my #targetengine "session" script open some file and user (not script) close it - there is some "handler" active which involves this kind of error when application is going to quit?
Or, closing my #targetengine "session" script, which I understand as closing "palette", should proceed some more procedures then only win.close()?
Thx for your patience
So, should I assume thats this kind of problem is
to wide to discuss?
Not to wide to discuss! I am having the same issue with very similiar circumstances. I have a script that opens a dialog that gives a list of page ranges. After the user clicks ok the new document is created. From there, there are multiple palettes that can be open and closed for various reasons so I could never wittle it down to a certain circumstance like you have but I imagine it is the same thing. Any other luck on this?
I just change window ("palette") to window ("dialog")
so user is in "single mode" with this Find Feature.
This is a step back but error disappear in this case.
hmm, that stinks. I unfortunately need the type palette so I can work on the document in the background while keeping my UI up. If by chance you stumble on to anything else that may help post it back here. I will be doing the same.