[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Patch: Wrong ownership sematics for BSTRs

From: Stefan Küng <tortoisesvn_at_gmail.com>
Date: Mon, 18 Jan 2010 19:03:21 +0100

On 18.01.2010 17:52, Kazutoshi Satoda wrote:
> Dmitry wrote:
>> Stefan wrote:
>>> I've added (std::nothrow) to a few new calls in r18337.
>> I found some more places to add that. Patch follows.
>
> Are you aware of that adding std::nothrow doesn't prohibit throwing
> from the constructor?
>
> For example,
> new (std::nothrow) CSVNPropertyPage(files_);
> this doesn't throw if the allocation of CSVNPropertyPage itself failed,
> but does throw std::bad_alloc if an allocation fails during copy from
> files_ into CSVNPropertyPage::filenames.
>

You're right. I've added a try-catch in r18357.

Stefan

-- 
        ___
   oo  // \\      "De Chelonian Mobile"
  (_,\/ \_/ \     TortoiseSVN
    \ \_/_\_/>    The coolest Interface to (Sub)Version Control
    /_/   \_\     http://tortoisesvn.net
------------------------------------------------------
http://tortoisesvn.tigris.org/ds/viewMessage.do?dsForumId=757&dsMessageId=2440036
To unsubscribe from this discussion, e-mail: [dev-unsubscribe_at_tortoisesvn.tigris.org].
Received on 2010-01-18 19:03:27 CET

This is an archived mail posted to the TortoiseSVN Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.