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

Re: [patch, suggestion, notes] for Applying CAutoHandle (r21053, r21058)

From: Oto BREZINA <otik_at_printflow.eu>
Date: Mon, 28 Mar 2011 18:02:42 +0200

On 2011-03-28 16:47, Stefan Küng wrote:
>> Hey.
>>
>> AutoHandle should not be used for "preudo-handles" returned by GetCurrentProcess() and possibly some other functions - those pseudo-handles need not be closed. One such use is currentl inside RemotecCacheLink, maybe there're others I haven't found yet.
> Yes, they don't *need* to be closed, but they *can* be closed.
> So no reason not to use the auto handle classes for them.
Interesting. As GetCurentProcess() pseudo-handle can be closed and share
value with INVALID_HANDLE_VALUE, thus INVALID_HANDLE_VALUE can be closed
too?
Correct?
> Stefan

-- 
Oto BREZINA, Printflow s.r.o., EU
------------------------------------------------------
http://tortoisesvn.tigris.org/ds/viewMessage.do?dsForumId=757&dsMessageId=2714790
To unsubscribe from this discussion, e-mail: [dev-unsubscribe_at_tortoisesvn.tigris.org].
Received on 2011-03-28 18:30:02 CEST

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.