Hi,
I'm trying to export a long string into txt file with a report. I declarated the following local variables :
Cadena1, text 1024
Cadena2, text 1024
Cadena3, text 1024
The section of code where i get the error is the following :
OutFile.WRITE(Cadena1+Cadena2+Cadena3);
When i execute the report, it gets the following error:
"there is not sufficient available space in the c/al stack memory to execute this task.
there are too many simultaneous activities,due to the way recursive function call is used in the program. the problem can by solved temporarily by shutting down some of the open activities(but the function still cannot be executed)."
thank you in advance for your suggestions.
0
Answers
AP Commerce, Inc. = where I work
Getting Started with Dynamics NAV 2013 Application Development = my book
Implementing Microsoft Dynamics NAV - 3rd Edition = my 2nd book
I´m a fellow of icapilla.
We have this code...
OutFile.CREATEOUTSTREAM(OStream);
OStream.WRITETEXT(Cadena1+Cadena2+Cadena3);
But the error continue...
If i only write this...
OutFile.CREATEOUTSTREAM(OStream);
OStream.WRITETEXT(Cadena1+Cadena2);
the file can be created but if write OStream.WRITETEXT(Cadena1+Cadena2+Cadena3) the error appears..
The total string is about 2500 characters
We need some help plz... ](*,)
OutFile.CREATEOUTSTREAM(OStream);
OStream.WRITETEXT(Cadena1);
OStream.WRITETEXT(Cadena2);
OStream.WRITETEXT(Cadena3);
OutFile.CLOSE();
Chn
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
i solved the problem with this sequence of code: