Boost logo

Boost :

Subject: Re: [boost] [rfc] rcpp
From: Andreas Masur (amasur_at_[hidden])
Date: 2010-03-04 07:53:04


On Feb 28, 2010, at 6:13 PM, Daniel Trebbien wrote:

> [...]
> I know, you're thinking that this is picky. Yes, it's really picky, but I can't help from thinking about this case, especially because the MSDN documentation does not definitively state that this can not happen. I also looked at the documentation for `CloseHandle` to see if it can not accept `NULL` or `INVALID_HANDLE_VALUE`, but there is nothing on that issue, either. (If `CloseHandle` did not accept `NULL`, for example, then `DuplicateHandle` could never use `NULL` for the resulting `HANDLE` value.)

Calling 'CloseHandle' with a value of NULL or INVALID_HANDLE_VALUE usually simply results in an access violation. You may be able to catch it with SEH but I have never tried...

Ciao, Andreas


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk