Bonjour,
J'ai réalisé ce petit bout de code :
J'ai un access violation à la première ligne dans ntdll.dll mais je ne comprend pas pourquoi...
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 TList *ListeThread = IdIRCServer1->Threads->LockList(); for( int i=0; i<ListeThread->Count; i++ ) { try { TIdPeerThread *Thread = (TIdPeerThread*)ListeThread->Items[i]; Thread->Connection->WriteLn( "PING MaTHieU" ); } catch( ... ) { TIdPeerThread *Thread = (TIdPeerThread*)ListeThread->Items[i]; Thread->Stop(); } } IdIRCServer1->Threads->UnlockList();
erci d'avance,
Mathieu
Partager