[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 20:05:36 +0200

On 2011-03-28 18:34, Stefan Küng wrote:
> On 28.03.2011 18:02, Oto BREZINA wrote:
>> On 2011-03-28 16:47, Stefan Küng wrote:
>>>
>> Interesting. As GetCurentProcess() pseudo-handle can be closed and share
>> value with INVALID_HANDLE_VALUE, thus INVALID_HANDLE_VALUE can be closed
>> too?
>> Correct?
> Yes, correct.
> As stated in
> http://msdn.microsoft.com/en-us/library/ms683179%28VS.85%29.aspx
>
> "Calling the CloseHandle function with a pseudo handle has no effect.".
I'm getting confused now. Would this lead to exception with debugger
hooked or not? If not, do we need handle CAutoFile differently to
CAutoGeneralHandle?
Yes, we do - because of IsValid. I get it.

THX :)

As I sad before" It is possible to handle all cases; and: Brilliant design.
> Stefan

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

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