Official Fulqrum Publishing forum

Official Fulqrum Publishing forum (http://forum.fulqrumpublishing.com/index.php)
-   Technical threads (http://forum.fulqrumpublishing.com/forumdisplay.php?f=191)
-   -   Thread safe script (http://forum.fulqrumpublishing.com/showthread.php?t=22737)

_12F_i-jeanm 05-10-2011 04:40 AM

Thread safe script
 
1 Attachment(s)
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.


All times are GMT. The time now is 11:51 AM.

Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright © 2007 Fulqrum Publishing. All rights reserved.