|
Boost Users : |
Subject: Re: [Boost-users] [ASIO] Where to use CoInitizeEx
From: Zachary Turner (divisortheory_at_[hidden])
Date: 2009-06-03 10:44:13
On Wed, Jun 3, 2009 at 9:31 AM, Frank Mori Hess <frank.hess_at_[hidden]> wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> On Wednesday 03 June 2009, Zachary Turner wrote:
>>
>> You're right!
>> But how can I adapt this code to use RAII?
>> Maybe is more simple to add a try-catch statement?
>>
>> See the example I gave above using thread_specific_ptr.
>> thread_specific_ptr frees its objects when the thread exits and the example
>> above works regardless of whether or not you are always only using COM from
>> threads you've created manually.
>
> Why are so many people's quoting in the plain-text version of their emails
> broken? Is this a gmail problem?
>
I never even realized it was a problem until you mentioned that :P It
always displays perfectly under gmail. Is this better? Guess it's
due to the way they handle quotes if rich formatting is turned on
(which is the default).
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net