Skip to main content

Script Closes Early

Hello, 
So I have this script that I've used countless times. I made a copy of it and within the copy made a few changes to the code to add some additional options. The issue is that when I run this new script it will sometimes run the entire script as it is supposed to perfectly, but then sometimes it just closes midway through. I've stepped through the program using the script editor and it works perfectly. I can't figure out why its closing early. 
The other odd thing about this is that I've even run the old script file that I've used countless times and even it now is closing early at the same point. It works sometimes and then not others. It's very fustrating and I can't seem to find the cause for this especially since it works in debug mode and correctly sometimes and then not other times. 

Brian Element Sun, 10/15/2017 - 21:02

Hi Chris,

Did you happen to make any changes to a dialog?  I have seen this happen where the syntax error is actually in the dialog but it shows up by giving strange errors in the script.  If you do have dialogs and have made some changes to them look at them closely and make sure that you didn't remove something that you still have variables pointing to or something like that.  Also if you have drop-downs with no arrays attached to them that can also cause some problems.

Brian

chdarc Mon, 10/16/2017 - 01:13

Hey Brian, 
Nope no changes to dialogs and no changes to drop-downs. All of them work fine previously. Now ever so often it just will stop running midway through. I have no clue as to why. 
 

The website encountered an unexpected error. Try again later.