Error: String stack not popped enough in script exec - DUPLICATE
by CdnGater · in Torque 3D Professional · 06/23/2011 (10:01 pm) · 2 replies
I'm running into the following error every now and then
"String stack not popped enough in script exec"
I've checked the script and its a simple add to an arrayobject with a couple of strings.
I can run the same script numerious times, but 1 out of 20 errors with that error.
I want to know what could cause the error, yes I know what it says, but what causes it?
With trace on, I see it enter AddEvent, but then error out. Remember this is like 1 out of 20 I get the error, the rest of the time it works. Thats why this is so confusing.
Any ideas?
Thanks
"String stack not popped enough in script exec"
I've checked the script and its a simple add to an arrayobject with a couple of strings.
I can run the same script numerious times, but 1 out of 20 errors with that error.
I want to know what could cause the error, yes I know what it says, but what causes it?
AddEvent("doCmdStartScene", "1000,"Dummy","","Sector_T3D","392.803009033203 194.682006835938 665.031005859375 0 0 0 1","0",1");
function AddEvent(%eventID, %args)
{
echo("Adding " SPC %eventID SPC "]" @ %args @ "[");
$EventMgr.push_back(%eventID,%args);
}
The echo shows the following which is correct
Adding doCmdStartScene ]1000,"Dummy","","Sector_T3D","392.803009033203 194.682006835938 665.031005859375 0 0 0 1","0",1[With trace on, I see it enter AddEvent, but then error out. Remember this is like 1 out of 20 I get the error, the rest of the time it works. Thats why this is so confusing.
Any ideas?
Thanks
#2
07/01/2011 (11:27 am)
I ran into the same error under with some different code and at least mine has been logged: www.garagegames.com/community/forums/viewthread/124405
Torque Owner CdnGater
Duggan Software Studio