Page 1 of 1

CRASH!!

Posted: Fri Jul 25, 2008 10:50 pm
by Mosin
THE SERVER HAS CRASH! oh noes. i was looking at the arty display in gate library and suddenly io was pwnt. *sad face*

Archived topic from AOV, old topic ID:3384, old post ID:21607

CRASH!!

Posted: Fri Jul 25, 2008 11:00 pm
by Red Squirrel
Yeah I just found out what it is, another good example of RunUO's lack of planing. Most if all of the code is thread unsafe which means if there are two threads running such as the main thread and a timer (such as damage delay) if two lines of code are executed in a certain order it can crash.

ex:

if(creature!=null)creature.dosomething();

But say during the if statement the creature is not null it returns true, but meanwhile in another thread something happens and that creature becomes null but it has not executed creature.dosomething() yet then when it does go to execute that - CRASH.

It's not exactly whats happening in this case but that example is simpler then the current situation here.

Archived topic from AOV, old topic ID:3384, old post ID:21608

CRASH!!

Posted: Fri Jul 25, 2008 11:35 pm
by Red Squirrel
The crash has now been fixed.

Archived topic from AOV, old topic ID:3384, old post ID:21612