Re: I am loosing the handle
- From: "Doron Holan [MS]" <doronh@xxxxxxxxxxxxxxxxxxxx>
- Date: Mon, 19 Dec 2005 12:00:41 -0800
it sounds like you have a buffer overrun occuring somewhere in your code.
if you are using visual studio, you can set a breakpoint on the memory
address of the handle and see who is overwriting the value.
there is no part of memory that is protected at run time. you have a bug,
you need to fix it. even thoug the hComm field is now staying the same,
some other part of the class is now being overwritten where hComm used to
be.
d
--
Please do not send e-mail directly to this alias. this alias is for
newsgroup purposes only.
This posting is provided "AS IS" with no warranties, and confers no rights.
"Neil" <neil@xxxxxxxxxx> wrote in message
news:XIDpf.6483$k76.1399@xxxxxxxxxxxxxxxxxxxxxxxxx
>
> "Alexander Grigoriev" <alegr@xxxxxxxxxxxxx> wrote in message
> news:OG9oEmLBGHA.272@xxxxxxxxxxxxxxxxxxxxxxx
>> Access specifiers are compile-time protection. They don't affect run
>> time.
>>
>
> Then, I guess by moving hComm from the top, to a bottom place is what
> actually did it? Because now it is not getting overwritten, what could
> have
> caused this to happen? How can I protect hComm from getting overwritten
> in
> the future? Is there a part in memory that is protected during run-time?
>
> Thank you,
> Neil
>
>
.
- Follow-Ups:
- Re: I am loosing the handle
- From: Neil
- Re: I am loosing the handle
- References:
- I am loosing the handle
- From: Neil
- Re: I am loosing the handle
- From: Neil
- Re: I am loosing the handle
- From: Alexander Grigoriev
- Re: I am loosing the handle
- From: Neil
- I am loosing the handle
- Prev by Date: Re: I am loosing the handle
- Next by Date: Re: Waitable Timers
- Previous by thread: Re: I am loosing the handle
- Next by thread: Re: I am loosing the handle
- Index(es):
Relevant Pages
|