Re: Conceptual Patch - Handle wrapper class
From: Stefan Küng <tortoisesvn_at_gmail.com>
Date: Sat, 12 Mar 2011 09:30:04 +0100
On 11.03.2011 13:40, Oto BREZINA wrote:
No, NULL can not be a valid handle.
> If no: would be better to use NULL (0) as Invalid handler.
not really. Some APIs return INVALID_HANDLE_VALUE in case of an error,
> It may simplify test for invalid handle a bit, also bValid attribute may
I don't know about that. AFAIK even current APIs still return
> Is there any situation when INVALID_HANDLER_VALUE is valid handler?
No, that's always invalid.
> if both are no: we don't need to pass invalid value into object
If you use CloseHandle() with an invalid handle, an exception is thrown.
While I usually like helper classes, I don't think this would help with
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=2711090 To unsubscribe from this discussion, e-mail: [dev-unsubscribe_at_tortoisesvn.tigris.org].Received on 2011-03-12 09:30:17 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.