Stack error
Any ideas why error comes when i do package, and how to resolve it? error: Processing of message 'al/createPackage' failed with error: 'Insufficient stack to continue executing the program safely. This can happen from having too many functions on the call stack or function on the stack using too much stack space.'
Thanks
Does the server event viewer has more?
No. Event viewer has nothing but output in vs code shows as attached. I thought i have too many objects and removed almost half, but still have error.
Looks like the c# generator gets into a recursive call triggering a stack overflow around an else calling the same method that has an if/else.
Could you confirm us if you have somewhere over 50 if statements nested one within the other?
Not "if" but more than 1000 lines "case" statement. And yes, i've commented it and now i can make package. Code is as attached. Could issue be resolved on your side i compiler/package code or i need to split NAV code? How max case statements can be in one loop?
I think the best is to refactor. On the how much case statements we allow, we do not(yet) have a threshold. We are just bound by the .net framework' default stack size allocation in the implementation of our generators.
OK. Redesigned by split "case" to 500 lines - it works. So probably not so big issue. Just would be nice to have "clear" error in compiler.
We have addressed this issue and the fix will be available in an upcoming release.