locked
First Chance Exception RRS feed

  • Question

  • Hello Everyone,

              Thanks for Stopping by.  I am getting followinf exceeption

    first Chance Excepion at ------: Access Violation at 0XsomeMemory address

     

    and Stack is at ntdll.dll!  the debugger is pointing to the value malloc.c at the following line

     

     

    return HeapAlloc(_crtheap, 0, size ? size : 1);

     

    the _ctrheap value is 0x001C0000 and size is 204.

     

    the Function i am calling is user input driven. It works for first three but fails at the forth Call. The Input and all other parametes passed to the Function is the same at each and every call.

     

     

    Any help would be a great.

     

    Cheers,

    Arun

    Monday, August 27, 2007 2:43 AM

Answers

  • This could easily be a heap corruption, possibly caused by an overflow. Have you got the source of the function in question, and could you possibly paste it here?
    Monday, August 27, 2007 1:34 PM

All replies

  • This could easily be a heap corruption, possibly caused by an overflow. Have you got the source of the function in question, and could you possibly paste it here?
    Monday, August 27, 2007 1:34 PM
  •  

    I found out the bug in the code. Its actually a Haep Corruption. Its a overflow. Thanks for the reply einoras.

     

    Cheers

    Arun

    Tuesday, August 28, 2007 12:45 AM