@anonymous: "If in a program I call _beginthread and/or _beginthreadNT many times,
will a memory leak result if I do not call CloseHandle for the handle 
returned by the functions?
Danzer"
    @darko: "<quote>
You do not call CloseHandle for handles returned from _beginthread. 
Instead you use _endthread. Furthermore this is what says BDS help:
"The _beginthread function creates and starts a new thread. The thread 
starts execution at start_address.
The size of its stack in bytes is stack_size; the stack is allocated by 
the operating system after the stack size is rounded up to the next 
multiple of 4096. The thread is passed arglist as its only parameter; it 
can be NULL, but must be present. The thread function should terminate 
by simply returning; the _endthread. function will be called 
automatically. The _endthread function will automatically close the 
handle, and set the return value of the thread to zero."
So in short answer is no."
{'source': 'USENET', 'other_information': '{"reply_count": 1, "forum_name": "borland.public.cppbuilder.nativeapi.20141213.mbox"}', 'file': 'data/output/usenet-borland.public.parquet'}