I'm kinda confused why it asserted
![[Image: Screenshot-2012-02-27_20.10.08.png]](http://dl.dropbox.com/u/27784874/ZScreen/2012-02/Screenshot-2012-02-27_20.10.08.png)
As you can see it didn't like the ++itr part in cChunkMap::RemoveClientFromChunks(), which is strange, because a_Chunks is empty
![[Image: Screenshot-2012-02-27_20.14.43.png]](http://dl.dropbox.com/u/27784874/ZScreen/2012-02/Screenshot-2012-02-27_20.14.43.png)
To me this means:
1. cClientHandle::m_LoadedChunks has been altered by another thread, but the criticalsection for m_LoadedChunks was locked and owned by the current thread.
2. The line GetChunkNoGen(...)->RemoveClient(a_Client) in cChunkMap::RemoveClientFromChunks() changed cClientHandle::m_LoadedChunks. But upon inspection this does not happen
So, wtf?
By the way, I seem to have a shitload of SendThreads (hundreds) ?!?
![[Image: Screenshot-2012-02-27_20.20.11.png]](http://dl.dropbox.com/u/27784874/ZScreen/2012-02/Screenshot-2012-02-27_20.20.11.png)
368 threads yo~
Using revision 326
![[Image: Screenshot-2012-02-27_20.10.08.png]](http://dl.dropbox.com/u/27784874/ZScreen/2012-02/Screenshot-2012-02-27_20.10.08.png)
As you can see it didn't like the ++itr part in cChunkMap::RemoveClientFromChunks(), which is strange, because a_Chunks is empty
![[Image: Screenshot-2012-02-27_20.14.43.png]](http://dl.dropbox.com/u/27784874/ZScreen/2012-02/Screenshot-2012-02-27_20.14.43.png)
To me this means:
1. cClientHandle::m_LoadedChunks has been altered by another thread, but the criticalsection for m_LoadedChunks was locked and owned by the current thread.
2. The line GetChunkNoGen(...)->RemoveClient(a_Client) in cChunkMap::RemoveClientFromChunks() changed cClientHandle::m_LoadedChunks. But upon inspection this does not happen
So, wtf?
By the way, I seem to have a shitload of SendThreads (hundreds) ?!?
![[Image: Screenshot-2012-02-27_20.20.11.png]](http://dl.dropbox.com/u/27784874/ZScreen/2012-02/Screenshot-2012-02-27_20.20.11.png)
![[Image: Screenshot-2012-02-27_20.21.07.png]](http://dl.dropbox.com/u/27784874/ZScreen/2012-02/Screenshot-2012-02-27_20.21.07.png)
Using revision 326