Error Message

sabzam
Member Posts: 1,149
There is inusfficient memory (stack) to execute this function. This can be due to the way that recrusive function calls are used in the program.
I have got this error message whcih is being shown everytime I run just two lines of code in particular. These codes are simple arithmetic; has anyone got any idea the reason behind this message?
I have got this error message whcih is being shown everytime I run just two lines of code in particular. These codes are simple arithmetic; has anyone got any idea the reason behind this message?
0
Comments
-
Post the code and we might be able to answer.Apathy is on the rise but nobody seems to care.0
-
It can be problem of never ending recursive calls.
LikeField 1 - OnValidate VALIDATE(Field2,MyValue); Field2 - OnValidate VALIDATE(Field1,MyValue);
In this case you can use the variable CurrFieldNo to add condition that some code is called just only if the cursor is on the specific field:Field 1 - OnValidate VALIDATE(Field2,MyValue); Field2 - OnValidate if CurrFieldNo = FIELDNO(Field2) then VALIDATE(Field1,MyValue);
0 -
To solve this. Turn on client monitor and run the process. then stop client monitor and look at client monitor for repeated code.
Once you've found the place, put a break point and run the process again. Look at the call stack on how it gets created. Hit F5 and you'll see the callstack increasing.
And you'll see the recursive process. Double click on lines in callstack and see what is calling what recursively.0 -
And btw 2.6 did not have a call stack window, and it was a bitch debugging it.
That is one of the reason CU 90, 80, 12, are so big.0 -
Appartently the problem has been CurrForm.Update statement on the Modify Trigger of the Form. Does anyone know why this has been an issue since it is a not-so-heavy stmt. Just to let you know that statement was not needed since the form was updated even without this statement.0
-
If you are using 4.0 you can use UpdateOnActivate property of the form to update the form instead of using the Currform.Update. (I am anot sure if this property of the form is available in the previous versions of NAV)Diptish Naskar
For any queries you can also visit my blog site: http://msnavarena.blogspot.com/0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 320 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions