Re: Wyciek pamiêci podczas kasowania w±tku

Autor: Matuzalem <codemaster__at_op.pl>
Data: Fri 27 Oct 2006 - 16:23:02 MET DST
Message-ID: <1161958982.254871.113040@m7g2000cwm.googlegroups.com>
Content-Type: text/plain; charset="utf-8"

User napisał(a):
> Oto ten kod:
>
> // ---------------------------------------------
> #include <windows.h>
>
> DWORD WINAPI ThreadProc( void* Args )
> {
> Sleep( 1000 );
> return 0;
> }
>
> void main()
> {
> for( int i = 0; i < 10; i++ )
> {
> DWORD tid = 0;
>
> HANDLE hthread = CreateThread( 0, 0, ThreadProc, 0, 0, &tid );
> WaitForSingleObject( hthread, INFINITE );
>
> CloseHandle( hthread );
> }
> }
> // ---------------------------------------------
>
> Pozdrawiam.

MSDN:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dllproc/base/creating_threads.asp

Pozdrawiam
Received on Fri Oct 27 16:25:07 2006

To archiwum zosta³o wygenerowane przez hypermail 2.1.8 : Fri 27 Oct 2006 - 16:42:03 MET DST