Re: Encrypt/ Decrypt in NdisIM with Ethernet
- From: "Alireza Dabagh [MS]" <alid@xxxxxxxxxxxxxxxxxxxx>
- Date: Wed, 4 May 2005 15:13:46 -0700
That again could be because stack (and the variables on it) gets corrupted.
I can only help you as much as you are willing to elaborate what is it your
code doing. Short of that, I can only give you this generic advice:
Make sure your stack is not getting corrupted. For example what is it "do
something here" that your code does? Do you call another function? Do you
write to an array or initialize a data structure? Also watch out for
initializations that should take the size of the structure but you are
passing the size of a -pointer- to the structure (or the other way around.)
things like that.
And needless to say, make sure you do not end up with a recursive calls. or
huge data structures on the stack.
-ali
--
This posting is provided "AS IS" with no warranties, and confers no rights.
"Hien Nguyen" <thuchien@xxxxxxxxx> wrote in message
news:567F1B33-D6AB-4ADC-A5E4-B0C1557F3FC7@xxxxxxxxxxxxxxxx
> It's hard for me. Because every time, when I break the debug to enter some
> command, I can't continue debug, every commands have no effect, the target
> computer is hung. Do I have some wrong config?
>
> And this problem, I solved it. But new problem appears now, at the latter
> post as below:
>
> int ModPower(bas,mod,pow,res)
> {
> unsigned short in i,a,b;
> ...[snip] //Just init variables here
>
> for (i=a,i>=b;i++)
> {
> DbgPrint("i=%d\n",i);
> ...[snip] // Do something here but don't change i
> }
>
> and then, when I see the debug in windbg:
> At the first loop , it's correct:
> i=31
> But at the second loop, I hope it is i=30, the result is
> i=22583
>
> always this number. I considered my code carefully, but still don't
> understand.
> Could you help me, show me why it happens?
>
>
> "Alireza Dabagh [MS]" wrote:
>
>> Please post the output of kb and !analyze -v
>>
>> -ali
>>
>> --
>> This posting is provided "AS IS" with no warranties, and confers no
>> rights.
>>
>> "Hien Nguyen" <thuchien@xxxxxxxxx> wrote in message
>> news:F9DCA91A-CF03-413F-942F-1BF8556E929E@xxxxxxxxxxxxxxxx
>> >
>> > Thank you very very much for your support, I had try to change the code
>> > and
>> > data to make it smaller, and the driver work more a bit. But now I meet
>> > the
>> > following bug:
>> >
>> > *** Fatal System Error: 0x000000d1
>> > (0x1675B35C,0x00000002,0x00000000,0xF6ED231A)
>> > Break instruction exception - code 80000003 (first chance)
>> > A fatal system error has occurred.
>> > Debugger entered on first try; Bugcheck callbacks have not been
>> > invoked.
>> > A fatal system error has occurred.
>> >
>> > What is wrong here? And again, how to solve it?
>> > Thank you a lot.
>>
>>
>>
.
- Follow-Ups:
- Re: Encrypt/ Decrypt in NdisIM with Ethernet
- From: Hien Nguyen
- Re: Encrypt/ Decrypt in NdisIM with Ethernet
- References:
- Re: Encrypt/ Decrypt in NdisIM with Ethernet
- From: Hien Nguyen
- Re: Encrypt/ Decrypt in NdisIM with Ethernet
- From: Alireza Dabagh [MS]
- Re: Encrypt/ Decrypt in NdisIM with Ethernet
- From: Hien Nguyen
- Re: Encrypt/ Decrypt in NdisIM with Ethernet
- Prev by Date: Re: Where's the other thread currently at?
- Next by Date: VT6421/VT6410/VT6420/VT8237 ComboRAID Driver, How to Integrate?
- Previous by thread: Re: Encrypt/ Decrypt in NdisIM with Ethernet
- Next by thread: Re: Encrypt/ Decrypt in NdisIM with Ethernet
- Index(es):
Relevant Pages
|