> "Carl Daniel [VC++ MVP]"
>>
>> Show more code. What is the complete definition of MutexLock?
>
> i'm using the http://www.bbdsoft.com/win32.html
OK, fine. Those classes look straightforward and correct. How 'bout showing
a bit more of your code now?
-cd
Jun - 10 Jul 2005 06:48 GMT
>> "Carl Daniel [VC++ MVP]"
>>>
[quoted text clipped - 6 lines]
>
> -cd
oh ok, the code kinda bit bloated, here is the basic...
if (true)
{
CriticalLock _lock(g_chLock);
std::map<int, tPlayerInfo>::iterator _iterPlayerInfo =
m_mPlayerInfo.begin();
while(_iterPlayerInfo != m_mPlayerInfo.end())
{
...
++_iterPlayerInfo;
}
}
program runs only 2 threads... main() doesn't do anything just to input a
string.
i'm just protecting the m_mPlayerInfo from sharing...
hope this helps, probably any good tool to detect deadlock?
thanks
-jun
Jun - 10 Jul 2005 07:30 GMT
>> "Carl Daniel [VC++ MVP]"
>>>
[quoted text clipped - 6 lines]
>
> -cd
sorry, i think it has something to do with memory leaks :-(
try to post if anythings comes up
thanks a lot
-jun