Extension Thread Safety...

Post here your questions about Actionscript and Java server side extensions development.

Moderators: Lapo, Bax

Post Reply
sirJimbo
Posts: 10
Joined: 31 Aug 2010, 17:01

Extension Thread Safety...

Post by sirJimbo »

Hello,

I´m using the java class Vector to keep my users, the problem is that I´m getting some errors that it looks like is something to do with Thread safety.

Java Api Docs says that the class Vector is synchronized so this should be ok for Thread Sefety???
User avatar
Lapo
Site Admin
Posts: 23438
Joined: 21 Mar 2005, 09:50
Location: Italy

Post by Lapo »

Yes Vector is thread safe.
Can you provide more info on your "thread safety" problems? What's the problem exactly?
Lapo
--
gotoAndPlay()
...addicted to flash games
sirJimbo
Posts: 10
Joined: 31 Aug 2010, 17:01

Post by sirJimbo »

The problem I have is that sometimes one of the users does not recieve the msg I send from the server or does not receive a variable update.

I think that maybe this is happening because I´m using something that is not thread safety, and when the extension is sending a msg and receives something from a user is causing some error. There is no debug error displayed so I don't really now how to find the problem.
User avatar
Lapo
Site Admin
Posts: 23438
Joined: 21 Mar 2005, 09:50
Location: Italy

Post by Lapo »

I don't think thread safety is directly related to that.
If a user does not receive the message there could be some other problems, maybe related with the connection or more simply with the server side code in general.
You should inspect the logs and look for errors that can be correlated with the missing update.
Lapo
--
gotoAndPlay()
...addicted to flash games
Post Reply