case MessageType.Move:
// handle the move internally
PlayerObject p = data.GetPlayer(e.Message.SenderID);
p.x = (float) e.Message.ReceiveData.Read(System.Type.GetType("System.Float"));
p.y = (float) e.Message.ReceiveData.Read(System.Type.GetType("System.Float"));
it fails on the first Read call, and says System.NullReferenceException
of course, i'm sending floats on the other end, and p.x is float
If i send ints and try to read System.Int32, it works fine
any ideas? thx
[edited by - brann on March 23, 2004 8:26:26 AM]
problem reading floats with directplay
hi all
I have a small problem usint directplay : i cant read floats, but it will work with ints
here is the failing code
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement