Personality Generator Broke After Merging Projects

 
#1

I merged a bunch of controls from one project to my main project. Ever since then I've been having trouble with my personality generator. It will run a few times and then it wont run any of it's scripts. It will try to cycle through them but after that each time it tries to launch one it will throw an error. Here's what I'm getting in the debug window each time it tries to launch a script. The part where it says "line 7" will change numbers :
EDIT: No error will appear in the Personality Gen window. Only the Debug window.

Code:


Error on line 7: Object reference not set to an instance of an object.
Error on line 7: Object reference not set to an instance of an object.
Error on line 7: Object reference not set to an instance of an object.
Error on line 7: Object reference not set to an instance of an object.
Saved C:\Users\Robot Control\Documents\EZ-Builder\My Projects\B9 Robot Control.EZB
Error on line 7: Object reference not set to an instance of an object.
Error on line 7: Object reference not set to an instance of an object.



I notice there are quite a few blank spots for scripts below my scripts in this control. I try to delete them but they slowly come back. Could this be a problem?

I'm also getting a few other errors when I try to have one script start another with a CC command. I'll get an error saying that the script it's trying to start does not exist. Not true. they are there. To fix this I have to delete the CC command and rewrite it. Then the script will start the other script.

This didn't happen before I imported the controls from the other project. They were mostly v4 sound boards controls. There were 10 different v4 sound board controls pointing to lots of sound files. Is that too many?

#2

A few footnote to this issue;

*I don't see this error appearing in any of the other control windows (that have windows).
*I've gone through all 8 of my scripts in the Personality Gen and only a couple have more than a few lines of code. The ones that do, don't have anything on the lines that the debug window is point to.
*The line the error is on in the debug window will change.
*I started seeing this issue with a new computer other than the one I have been using. I merged the projects on this new computer. I then transferred it to my old computer and the problem moved with it.
*I can clear the error by shutting down EZ BUilder and rebooting the EZB. Then net next time I run EZ Builder and connect to EZB all seems good until the personality gen cycles a few time then it will stop launching it's scripts and throw this error in the debug window.
*No error will appear in the Personality Gen window. Only the Debug window.

The Debug window is a nice tool but sometimes it does not tell me where the error is coming from. Just that an error has occurred in a control somewhere on a line.

I guess my next step would be to delete the personality gen and rewrite all the scripts in it. In the past this approach has resolved this issue when a script I've had for a while won't see an existing control and start it. I wish I could pinpoint what happens to cause this. I think it's usually a change I've made in the project that triggers this. However this is the first time it's happened to a big control like the personality gen and been this hard to find and resolve. *sick*

#3

fixed for next release

#4

Really? Whoo Whoo! So I wasn't losing my mind.

Thanks from somewhere near the bottom of my dark little heart. LOL. Tongue

#5
#6

Installed, tested and all is well now. Thanks again for the quick fix! Grin