aybiss
05-11-2007 12:40:03
Hi all. I've created the following ContactCallback
class BullshitContactCallback : ContactCallback
{
TargetRing owner;
public BullshitContactCallback(TargetRing owner)
: base()
{
this.owner = owner;
}
public static long score = 0;
public override void UserEnd()
{
//score++;
//GameWorld.self.retireGameObject(owner);
}
}
But even with all actual code commented out I'm getting access violations. Sometimes it manifests as 'object is null' exceptions, but mainly they're the 'attempted to read or write etc. etc.' variety. On my quad core Intel with Server 2k3 I have to run for ages to see it happen. On the dual core Athlon with XP it happens instantly that the ContactCallback is triggered.
In case it matters (I can't see how) the TargetRing is a floating cylinder that my 'ship' 'shoots' at. Collision detection is for telling that a TargetRing has been hit by anything with material 'BULLET'. On the quad core where it takes a while to see the problem, I can uncomment the code and my score goes up and my targets 'explode' when I shoot them.
Any suggestions? This one has me stumped and I can't really move on without solving the problem.
class BullshitContactCallback : ContactCallback
{
TargetRing owner;
public BullshitContactCallback(TargetRing owner)
: base()
{
this.owner = owner;
}
public static long score = 0;
public override void UserEnd()
{
//score++;
//GameWorld.self.retireGameObject(owner);
}
}
But even with all actual code commented out I'm getting access violations. Sometimes it manifests as 'object is null' exceptions, but mainly they're the 'attempted to read or write etc. etc.' variety. On my quad core Intel with Server 2k3 I have to run for ages to see it happen. On the dual core Athlon with XP it happens instantly that the ContactCallback is triggered.
In case it matters (I can't see how) the TargetRing is a floating cylinder that my 'ship' 'shoots' at. Collision detection is for telling that a TargetRing has been hit by anything with material 'BULLET'. On the quad core where it takes a while to see the problem, I can uncomment the code and my score goes up and my targets 'explode' when I shoot them.
Any suggestions? This one has me stumped and I can't really move on without solving the problem.
