<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#333333">
<div class="moz-cite-prefix">Hi Michel,<br>
<br>
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.<br>
<br>
Thanks again for your help.<br>
<br>
Best Regards,<br>
<br>
-Avery<br>
<br>
On 1/25/2015 1:49 PM, Michel SALES wrote:<br>
</div>
<blockquote
cite="mid:001301d038cf$a1dee6f0$e59cb4d0$@sales@OnLine.fr"
type="cite">
<pre wrap="">Hi Avery,
</pre>
<blockquote type="cite">
<pre wrap="">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
</pre>
</blockquote>
<pre wrap="">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: <a class="moz-txt-link-freetext" href="https://mta.openssl.org/mailman/listinfo/openssl-users">https://mta.openssl.org/mailman/listinfo/openssl-users</a>
</pre>
</blockquote>
<br>
</body>
</html>