Est-ce que tu as testé avec un bete tableau ?
ie:
#include <iostream>
#include <map>
#include <windows.h>
struct MyException
{
};
static DWORD WINAPI MyCallback (LPVOID)
{
try
{
throw MyException ();
}
catch (MyException& e)
{
}
return 0;
}
int main()
{
const int count = 100;
//std::map<int, HANDLE> threads;
HANDLE threads[100];
DWORD id;
std::cout << "CREATE THREADS" << std::endl;
for (int i = 0; i < count; ++i)
threads[i] = CreateThread (NULL, 0, &MyCallback, 0, CREATE_SUSPENDED, &id);
std::cout << "START THREADS" << std::endl;
for (int i = 0; i < count; ++i)
ResumeThread (threads[i]);
Sleep (1000);
return 0;
}
Voir de mettre 'NULL' a la place du '&id'