Whenever I run a report program, the following message will appear.
"
'REP REP_NEW2_V1' Line 586. B28 Not enough string space - Out of Memory.
Line 1 'RTP18' broke because a run time error was encountered.
!
"
I will post the coding on the next message
DEF='
DEF=DATE:'*':(SHIFT:'/':GROUP):'*':WT_TYPE:'*':TMP_PT_KY1:'*':TMP_PT_KY2:'*':WT_BDL:'*':TMP_PT_KY3:'*':TMP_PT_KY4
KEY1 =DEF
MKEY1=KEY1 ←– This is Line 586
A Typical DEF sting will look like this:
14037*1/A*HY500*36*9.00*.791*11*5348582
Sorry, a brief introduction about this report program. This report program is called Daily Production Summary Report. It is used to generate summary is production of finished goods according to Grade of products, shift of work , group of staff working under that shift and so on and so forth.
This report problem will normally work when the records are less than 984 records. Anything more than that, it will pop out the error message in the 1st post.(according to my observation)
According to a colleague, the program is "perfect". It is just that I have to find ways to increase more memory for AREV program.
Currently, I have this program running under Windows NT, Windows 2000 and Windows XP.
I have tried disabling MSDEXNT in MSDOS shortcut I created in Windows XP and run in Windows 95 compatibility mode. Still no avail. Is there any other way to solve it?
You'll need to enable expanded memory or recode the program to use less memory or swap to OpenInsight where this isn't an issue.
World leaders in all things RevSoft
You must ensure that you have Expanded Memory configured and selected. If you do a WHO in TCL you should see Expanded Memory as Active. Check the Memory Tab in your shortcut that you are setting EMS to 4096 and XMS to none and that Arev is started using the /M4096 switch. Set your default.pif to be the same.
A lot of hardware suppliers are not supporting Expanded Memory any longer. Search this forum for 'EMS' or 'expanded and memory' for more information.
World leaders in all things RevSoft
Garbagecollect and flush statements can help a bit too, but the most important thing is to get EMS going.
I tried AREV.EXE BM1TAG /M4096 and i checked from WHO in TCL stating that my expanded memory is active.
Yet, I still run into the same error message. Is there anything else I can do?
You seem to be missing the /X which tells AREV to use EMS for variables as well as programs. If it still fails it is then down to revisiting the program code with FLUSH and GARBAGECOLLECT and a lot more.
World leaders in all things RevSoft
After I tried AREV.EXE bm1tag /M4096X , the report is generated properly without error message "Not enough string space - Out of Memory" message.
Thank you everyone for helping me on solving this problem.
Good to hear.
World leaders in all things RevSoft