Re: EXCEPTION_INVALID_HANDLE woes
- From: "Ivan Brugiolo [MSFT]" <Ivan.Brugiolo@xxxxxxxxxxxxxxxxxxxx>
- Date: Mon, 17 Oct 2005 12:04:09 -0700
What exactly do you mean with "normal" system ?
The Flag is set in a registry key by tools such as gflags.exe.
As far as debugging goes, maybe the user/customer
has some debug monitor infrastrucutre in place.
You should try to get a full dump with handle information
from the customer, so that a proper investigation and fix can be made.
> Is there a function call my application can make to turn off the flag for
> itself?
Not in general. You sould write code that checks the registry
or it checks for a debug port, but, why defeat the safeguard when you can
fix it ?
--
This posting is provided "AS IS" with no warranties, and confers no rights.
Use of any included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm
<msidell@xxxxxxxxxxxxxxxxx> wrote in message
news:6kp7l1tkis5pubrg185eh3njg64g0hu0m8@xxxxxxxxxx
> On Mon, 17 Oct 2005 09:19:42 -0700, "Ivan Brugiolo [MSFT]"
> <Ivan.Brugiolo@xxxxxxxxxxxxxxxxxxxx> wrote:
>
>> If there is the FLG_ENABLE_CLOSE_EXCEPTIONS flag enabled
>> for the curent process or system wide, or if there is a debugger attached
>> to the process, then only the close-handle function will raise an
>> exception
>> when an invalid handle is passed to it.
>
> Thanks for the info.
>
> Is it possible for this flag to be set on "normal" user's systems? (The
> exception is being reported by our customers, who I assume are not running
> a debugger or other monitoring tools.)
>
> Is there a function call my application can make to turn off the flag for
> itself?
>
> --
> Mark
.
- Follow-Ups:
- Re: EXCEPTION_INVALID_HANDLE woes
- From: msidell
- Re: EXCEPTION_INVALID_HANDLE woes
- References:
- EXCEPTION_INVALID_HANDLE woes
- From: msidell
- Re: EXCEPTION_INVALID_HANDLE woes
- From: Ivan Brugiolo [MSFT]
- Re: EXCEPTION_INVALID_HANDLE woes
- From: msidell
- Re: EXCEPTION_INVALID_HANDLE woes
- From: Ivan Brugiolo [MSFT]
- Re: EXCEPTION_INVALID_HANDLE woes
- From: msidell
- EXCEPTION_INVALID_HANDLE woes
- Prev by Date: Re: EXCEPTION_INVALID_HANDLE woes
- Next by Date: Re: driver newbie
- Previous by thread: Re: EXCEPTION_INVALID_HANDLE woes
- Next by thread: Re: EXCEPTION_INVALID_HANDLE woes
- Index(es):
Relevant Pages
|