Hot Fix for Stack Error / Recursive function

kapil4dynamicskapil4dynamics Member Posts: 591
I don't remember , but did MS release any fix for this Error. Where in the message was

"There is insufficient memory (stack) to execute this function.

This can be due to the way recursive function calls are used in the program"
Kapil Khanna

Answers

  • Slawek_GuzekSlawek_Guzek Member Posts: 1,690
    There is nothing to fix here - it is not NAV Client error, it is ALWAYS C/AL programmer error.

    C/AL programmer is responsible to handle recursive calls properly and exit recursion at some point. NAV client software cannot decide - it can only throw an error when all available resources (stack memory here) is exhausted.

    Slawek
    Slawek Guzek
    Dynamics NAV, MS SQL Server, Wherescape RED;
    PRINCE2 Practitioner - License GR657010572SG
    GDPR Certified Data Protection Officer - PECB License DPCDPO1025070-2018-03
  • kapil4dynamicskapil4dynamics Member Posts: 591
    Thanx
    Kapil Khanna
  • Big_DBig_D Member Posts: 207
    Hi kapil4dynamics

    I always thought it was code that was the cause of a stack error but after exhaustively trawling through the code and not getting anywhere – I deleted the fin.zup file and bingo – disappeared!

    Keep up the good coding :D !
    Big D signing off!
Sign In or Register to comment.