Results 1 to 2 of 2

Thread: Assertion Error

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Sep 2000
    Location
    England
    Posts
    94

    Assertion Error

    Hey Guys

    I have a shell extension and it generally works fine in release mode but when i compile it into debug mode i get assertion errors generally just before a MFC window is called.

    Can someone tell me what causes these assertion errors and whether i should worry about them.

    Cheers
    peter
    "Let's all join forces, rule with an iron hand...and prove to all the world, metal rules the land..."
    -- Judas Priest

    My email is [email protected]

  2. #2
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594
    MFC uses the ASSERT macro that does exactly the same. An assertion error is always a bad thing, and you should make sure you don't have any. If you ignore assertion errors, then you may get some weird errors in totally unrelated places that are hard to track.

    Click "retry" when the assertion message comes, then "debug" in the next dialog. You will be placed at the line where the assertion failed. Using the call stack, you can then find out which function of yours called the function that asserted. You shold then set a breakpoint there and find out where the error comes from.
    All the buzzt
    CornedBee

    "Writing specifications is like writing a novel. Writing code is like writing poetry."
    - Anonymous, published by Raymond Chen

    Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width