a problem in socket programming

Hi,

i wrote a server/client program.i send some random numbers(x,y) via server to client and when i get this numbers in client(unity) i want instantiate a bullet in this numbers(x,y) that i get.i can do all of thats but when i instantiate the bullet the unity will crach.

please first run the server and the client.

so thanks.

326222–11503–$bug_197.zip (1.05 MB)

In addition,i get this error message:

m_ThreadCheck !Thread::EqualsCurrentThreadID(m_ThreadID)

i thinks unity is not Thread safe!!

what is your idea?

please help.