Game Development Community

Fatal Error, ref count already 0

by Noah Dyer · in Torque Game Engine · 02/24/2006 (8:26 am) · 1 replies

I added a new type of viewport control to my project that inherits from guiTSControl and models gameTSControl in many aspects (except it renders from a different point of view than the client control object). After I got rid of all my silly typos and the thing compiled, the engine won't fire up :( I get a fatal error supposedly in C:\Torque\SDK\Engine\sim\netstringtable.cc "Error, ref count is already 0!!"

netstringtable isn't one of the files I touched, and I haven't created an instance of my object, so I'm not sure what this problem is. Anyone have any ideas? Thanks for the help.

#1
02/24/2006 (9:43 am)
When I debug, the error seems to happen in compiledeval in this function:
const char *CodeBlock::exec(U32 ip, const char *functionName, Namespace *thisNamespace, U32 argc, const char **argv, bool noCalls, StringTableEntry packageName)
It took me for ever to figure out because there's a loop in there that runs A LOT. This functions pushes the limits of my C++ knowledge, any clues what might be wrong.