Buffer overrun detected

dimitrisdimitris Member Posts: 17
Hallo everybody I am a Navision Developer. One of our client (Navision 4, no Service Packs) often gets the following error message, during invoice postings :
"Buffer overrun detected.
A buffer overrun has been detected which has corrupted the program’s internal state. The program cannot safely continue execution and must be terminated."
It looks like to me that some tables become locked. Unfortunately, I can not recreate the problem and it happens often but not in a standard way so somebody can expect it or watch it happen. Any ideas? Does anyone help me how to translate/debug these kind of messages in the future. Is there any tools?

Comments

  • PhennoPhenno Member Posts: 630
    dimitris wrote:
    Hallo everybody I am a Navision Developer. One of our client (Navision 4, no Service Packs) often gets the following error message, during invoice postings :
    "Buffer overrun detected.
    A buffer overrun has been detected which has corrupted the program’s internal state. The program cannot safely continue execution and must be terminated."
    It looks like to me that some tables become locked. Unfortunately, I can not recreate the problem and it happens often but not in a standard way so somebody can expect it or watch it happen. Any ideas? Does anyone help me how to translate/debug these kind of messages in the future. Is there any tools?


    Buffer overrun error can be produced by code which is going through a big loop (big enough to reach the buffer limit) or infinite loop.

    What have you ran? Some batch job like item adjust or something like that?
    Do you have modifications/customisations on that part of navision that you ran?

    It looks like a classic bug in development but I never saw that kind of bug in original (non-customized) versions of Navision.
  • ta5ta5 Member Posts: 1,164
    Hi
    - IMHO a endless loop shows an error "stack overflow" rather than buffer overrun.
    - Buffer overrun can have many reasons, for example with automation objects and also if you try to enter stupid values in a date formula field.
    - Anyway, I would suggest to do (at least a technical) upgrade to SP2 if possible.

    Regards
    Thomas
  • PhennoPhenno Member Posts: 630
    ta5 wrote:
    Hi
    - IMHO a endless loop shows an error "stack overflow" rather than buffer overrun.
    - Buffer overrun can have many reasons, for example with automation objects and also if you try to enter stupid values in a date formula field.
    - Anyway, I would suggest to do (at least a technical) upgrade to SP2 if possible.

    Regards
    Thomas

    :roll:

    hm... you're probably right.
    buffer... stack... my mistake :)
  • dimitrisdimitris Member Posts: 17
    Thank you for your replies. I did not mention that the window that displays the message has a header of "Microsoft Visual C++ Runtime Library. Does that help?
  • ta5ta5 Member Posts: 1,164
    As far as I remember the messages that I've seen also had this header.
  • miciebmicieb Member Posts: 13
    Hello guys,

    I got the same issue, namely that when i import different Excel sheets into Navision, i get an buffer overrun also with a "Microsoft Visual C++ Runtime Library" header. :shock:

    It is impossible to debug, and the error does not emerge on the same time, during the import.

    I have searched the net endlessly about buffer overruns. It is not that i don't comprehend what overruns are, but i can't figure out how i get it from navision. Does anybody have any clue how this can be possible? :?

    Grtz
    Straight forward... Move!
Sign In or Register to comment.