.net - Object reference not set exception despite reference being set -


i'm programming multiplayer fps game in c# currently, , weird happening client: user sends shooting packet of new bullet causes server broadcast new bullet packet users connected, exception being thrown:

enter image description here

see line 94: try access last part of packet data, split !, contains position of cursor bullet has shot to.

i try access it, , "object reference not set" exception thrown, though can see parts[2] defined (look @ debug details, it's"612,311", , yet when try access it, exception thrown).

why doesn't work, then?

is application multithreaded? else receiving same message modifying it, or whatever sends message modifying before receivers process it? message member variable in class resetting value?

what you're seeing appears impossible. when happens, it's impossible in single-threaded application possible when multiple threads accessing same variables.


Comments