Windows System Software -- Consulting, Training, Development -- Unique Expertise, Guaranteed Results

Home NTDEV

Before Posting...

Please check out the Community Guidelines in the Announcements and Administration Category.

More Info on Driver Writing and Debugging


The free OSR Learning Library has more than 50 articles on a wide variety of topics about writing and debugging device drivers and Minifilters. From introductory level to advanced. All the articles have been recently reviewed and updated, and are written using the clear and definitive style you've come to expect from OSR over the years.


Check out The OSR Learning Library at: https://www.osr.com/osr-learning-library/


Exception 0xC0000028

OSR_Community_UserOSR_Community_User Member Posts: 110,217
Hello everybody,

I am encountering this exception in our application when running it on
one machine. I cannot find any description for this in MSDN or in any VC
include.

Does anybody know what this could be?

In the stack, I see a call to HeapAlloc and the application dies really
hard a few minutes later, so I suspect some major heap corruption

Thanks in advance.

(Running on NT Server 4.0, SP6, build 1381)

Comments

  • OSR_Community_UserOSR_Community_User Member Posts: 110,217
    Quote from NTSTATUS.H :
    //
    // MessageId: STATUS_BAD_STACK
    //
    // MessageText:
    //
    // An invalid or unaligned stack was encountered during an unwind
    operation.
    //
    #define STATUS_BAD_STACK ((NTSTATUS)0xC0000028L)
    Thanks
    Sanford Hayes
    Livingston & Co. Inc.
    [email protected]
    www.livco.com


    -----Original Message-----
    From: Eric Soirot [mailto:[email protected]]
    Sent: Tuesday, June 20, 2000 3:52 PM
    To: NT Developers Interest List
    Subject: [ntdev] Exception 0xC0000028


    Hello everybody,

    I am encountering this exception in our application when running it on
    one machine. I cannot find any description for this in MSDN or in any VC
    include.

    Does anybody know what this could be?

    In the stack, I see a call to HeapAlloc and the application dies really
    hard a few minutes later, so I suspect some major heap corruption

    Thanks in advance.

    (Running on NT Server 4.0, SP6, build 1381)

    ---
    You are currently subscribed to ntdev as: [email protected]
    To unsubscribe send a blank email to $subst('Email.Unsub')
  • OSR_Community_UserOSR_Community_User Member Posts: 110,217
    According to "Developing Windows NT Device Drivers" by Dekker and Newcomer,
    this error code is CORRUPT_ACCESS_TOKEN but gives no explanation as to
    exactly what this means.

    hth,

    John D. Rogers Mangosoft, Inc. [email protected]

    -----Original Message-----
    From: Eric Soirot [mailto:[email protected]]
    Sent: Tuesday, June 20, 2000 3:52 PM
    To: NT Developers Interest List
    Subject: [ntdev] Exception 0xC0000028


    Hello everybody,

    I am encountering this exception in our application when running it on
    one machine. I cannot find any description for this in MSDN or in any VC
    include.

    Does anybody know what this could be?

    In the stack, I see a call to HeapAlloc and the application dies really
    hard a few minutes later, so I suspect some major heap corruption

    Thanks in advance.

    (Running on NT Server 4.0, SP6, build 1381)

    ---
    You are currently subscribed to ntdev as: [email protected]
    To unsubscribe send a blank email to $subst('Email.Unsub')
  • OSR_Community_UserOSR_Community_User Member Posts: 110,217
    Excuse me! With the comment about CORRUPT_ACCESS_TOKEN, that was the bug
    check code. Error code C0000028 is STATUS_BAD_STACK.

    Sorry for any confusion!

    jdr

    -----Original Message-----
    From: Eric Soirot [mailto:[email protected]]
    Sent: Tuesday, June 20, 2000 3:52 PM
    To: NT Developers Interest List
    Subject: [ntdev] Exception 0xC0000028


    Hello everybody,

    I am encountering this exception in our application when running it on
    one machine. I cannot find any description for this in MSDN or in any VC
    include.

    Does anybody know what this could be?

    In the stack, I see a call to HeapAlloc and the application dies really
    hard a few minutes later, so I suspect some major heap corruption

    Thanks in advance.

    (Running on NT Server 4.0, SP6, build 1381)

    ---
    You are currently subscribed to ntdev as: [email protected]
    To unsubscribe send a blank email to $subst('Email.Unsub')
  • OSR_Community_UserOSR_Community_User Member Posts: 110,217
    I think they are in error. NtStatus.h defines it as an invalid or badly
    aligned stack, and since NtStatus.h is used to compile a driver, I believe
    it to be the proper definition.

    Gary

    -----Original Message-----
    From: John Rogers [mailto:[email protected]]
    Sent: Tuesday, June 20, 2000 1:02 PM
    To: NT Developers Interest List
    Subject: [ntdev] RE: Exception 0xC0000028

    According to "Developing Windows NT Device Drivers" by
    Dekker and Newcomer,
    this error code is CORRUPT_ACCESS_TOKEN but gives no
    explanation as to
    exactly what this means.

    hth,

    John D. Rogers Mangosoft, Inc. [email protected]

    -----Original Message-----
    From: Eric Soirot [mailto:[email protected]]
    Sent: Tuesday, June 20, 2000 3:52 PM
    To: NT Developers Interest List
    Subject: [ntdev] Exception 0xC0000028


    Hello everybody,

    I am encountering this exception in our application when
    running it on
    one machine. I cannot find any description for this in MSDN
    or in any VC
    include.

    Does anybody know what this could be?

    In the stack, I see a call to HeapAlloc and the application
    dies really
    hard a few minutes later, so I suspect some major heap
    corruption

    Thanks in advance.

    (Running on NT Server 4.0, SP6, build 1381)

    ---
    You are currently subscribed to ntdev as: [email protected]
    To unsubscribe send a blank email to
    $subst('Email.Unsub')

    ---
    You are currently subscribed to ntdev as:
    [email protected]
    To unsubscribe send a blank email to
    $subst('Email.Unsub')
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. Sign in or register to get started.

Upcoming OSR Seminars
OSR has suspended in-person seminars due to the Covid-19 outbreak. But, don't miss your training! Attend via the internet instead!
Kernel Debugging 13-17 May 2024 Live, Online
Developing Minifilters 1-5 Apr 2024 Live, Online
Internals & Software Drivers 11-15 Mar 2024 Live, Online
Writing WDF Drivers 20-24 May 2024 Live, Online