Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
2024-03-30 Lockup Bug, Billion Hit Point Buildings
#3
Quote:the cause

The error was caused by a read/write lock that was unlocked one too many times. It happened when determining the star density somewhere in a galaxy, the first time the function was called.

The error was sort of like this...

Code:
float Galaxy::StarDensity(where) {   rwLock.LockForRead   if(dataNotLoaded)   {    rwLock.Unlock    rwLock.LockForWrite    LoadData    rwLock.Unlock   }   starDensity = CalculateStarDensityUsingData(where)   rwLock.Unlock   return starDensity }
Reply


Messages In This Thread
RE: 2024-03-30 Lockup Bug, Billion Hit Point Buildings - by Haxus - 03-30-2024, 11:09 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)