Need help with con objects
by Tim Newell · in Torque Game Engine · 01/09/2002 (4:36 am) · 2 replies
I have created a class that derives from NetObject and it has a DECLARE_CONOBJECT and an IMPLEMENT_CO_NETOBJECT_V1 in it as well as a parent typedef. (These are the only requirements that I know of) Im trying to create an instance of this class in the Player class and it compiles fine. But when I run Torque it crashes before displaying anything. If I make my instance static it runs fine, but the problem is each player needs a copy of this new class on its own so I can't make it static.
Anyone have any idea what I can do?
-Tim aka Spock
Anyone have any idea what I can do?
-Tim aka Spock
#2
01/09/2002 (3:47 pm)
I found the problem, should have debugged last night even though I was too tired, it was a pointer error in my link list code and had nothing to do with the conobjects.
Torque 3D Owner Phil Carlisle
What does that do that youre not doing?
There's a number of macro's, maybe the one your using isnt correct?
I'll take a look tonight and see if I cant figure out what could be wrong.
Phil.