Re: Code Alignment Problem
From: cristalink (cristalink_at_nospam.nospam)
Date: 02/04/05
- Next message: Calvin Guan: "Re: PCI bus filter"
- Previous message: Ray Trent: "Re: HID Miniport - 1 Q"
- In reply to: Ken Allen: "Re: Code Alignment Problem"
- Next in thread: Maxim S. Shatskih: "Re: Code Alignment Problem"
- Messages sorted by: [ date ] [ thread ]
Date: Sat, 5 Feb 2005 11:19:23 +1300
You were clear enough. A small change in your source code may cause
significant changes in the assembly output, which in turn may cause a bug to
show up.
I also mentioned the possibility of a timing problem. Add
KeDelayExecutionThread with a zero wait interval before your code that
accesses the file system. Check if your code fails. Now increase the
interval to say 5 seconds and see what happens.
-- http://www.firestreamer.com - NTBackup to DVD and DV "Ken Allen" <kendrhyd@sympatico.ca> wrote in message news:utnaE5vCFHA.2756@TK2MSFTNGP12.phx.gbl... > cristalink wrote: > > The environment does not really matter. The code generated by the compiler > > is substantially different in debug and release modes. Most likely you have > > a bug in your code, such as an uninitialized variable etc. There's a chance > > you encountered a bug in the compiler or a timing problem. > > > > Review your code. Run Prefast from the latest DDK on your sources. Try > > Driver Verifier. Usually, you need to understand the assembly code to track > > down such a bug. If you cannot read assembly code, you better hire an > > expert. > > > > Perhaps I was not clear -- the ability to make the problem disappear and > reappear by the addition and removal of debug code exists in the debug > build only. IN one debug build the problem will exist; if I add some > additional statements, the problem does not manifest itself! > > -Ken
- Next message: Calvin Guan: "Re: PCI bus filter"
- Previous message: Ray Trent: "Re: HID Miniport - 1 Q"
- In reply to: Ken Allen: "Re: Code Alignment Problem"
- Next in thread: Maxim S. Shatskih: "Re: Code Alignment Problem"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|