Subject: Re: Leaked handles on Windows

Re: Leaked handles on Windows

From: Vlad Dinulescu <vlad.dinulescu_at_avira.com>
Date: Mon, 18 May 2009 17:38:29 +0300

Steinar H. Gunderson wrote:
> 2009/5/18 Daniel Stenberg <daniel_at_haxx.se>:
>> I'm sorry but I don't understand. How do you propose we fix this problem
>> without breaking the ABI?
>
> Can't you just load the library the first time you need it, and then
> store the handle forever? (Just make sure to use Windows' equivalent
> of pthread_once(), so you're thread-safe.)
>
> /* Steinar */

That's also a good solution (in my opinion).

-- 
Best regards,
Vlad Dinulescu
Received on 2009-05-18