Script Closes Early

4 posts / 0 new
Last post
chdarc
Offline
Joined: 06/13/2016 - 14:53
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's picture
Brian Element
Offline
Joined: 07/11/2012 - 19:57

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
Offline
Joined: 06/13/2016 - 14:53

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. 
 

Brian Element's picture
Brian Element
Offline
Joined: 07/11/2012 - 19:57

I am not sure off hand what might be doing it.  If you can share the script I would have a look at it and see if there is anything I can pick out.  You can send it to brian.element@ideascripting.com.

Brian