PDA

View Full Version : Thread safe script


_12F_i-jeanm
05-10-2011, 04:40 AM
I am working on a script and I modify an ArrayList on two overrides methods. I get an exception. It works even if it is not good. I think, the exception come from the use of threads and my script is not thread safe.

Since I am not a C# coder and I do not know how you manage your threads. I wonder if a dev can give us some advices to use data in the right way with thread.

I join the script which give me exception and the actual version.

DrSanchez
05-14-2011, 11:45 AM
I don't know anything about scripting in this game, but I do know a little c#.

to me, it doesn't look like you're creating a threaded version of the script more you're just creating a thread unsafe version.

Could be wrong though. like I say. I don't a thing about scripting in this game.