Hi Michel, I actually already tried _beginthread but got the same results. CrtDumpMemoryLeaks also reports no problems for me. I guess the tool I was using for leak detection just has some bugs in it. Thanks again for your help. Best Regards, -Avery On 1/25/2015 1:49 PM, Michel SALES wrote: > Hi Avery, > >> In the code I sent over before, I was calling CloseHandle on the thread: >> HANDLE h1=CreateThread(0,0,thread1,0,0,&t1); if(h1==0) { return > 0; } CloseHandle(h1); > > Yes, but you were trying to close the handle of a thread which was still > running ! > I have not checked what happens in this case. > > I am not sure to fully understand what your are doing now, but with the > modified version I've sent to you, _CrtDumpMemoryLeaks() doesn't report any > problem on my Windows 7 64 bits machine. > > Just another quick idea : why not try _beginthread() instead of > CreateThread() ? > > Michel > > > > > _______________________________________________ > openssl-users mailing list > To unsubscribe: https://mta.openssl.org/mailman/listinfo/openssl-users > -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mta.openssl.org/pipermail/openssl-users/attachments/20150125/f91bde99/attachment.html>