PCPERFORM error (AREV Specific)
At 27 MAR 2003 01:04:41PM Charles Milner wrote:
I have a program which uses the PCPERFORM statement to rename a DOS file.
Ie.
SUBROUTINE RENAME(OLD_FILENAME, NEW_FILENAME)
DECLARE FUNCTION UNASSIGNEDIF UNASSIGNED(OLD_FILENAME) OR UNASSIGNED(NEW_FILENAME) THEN RETURNCMD=REN ":OLD_FILENAME:" ":NEW_FILENAMEPCPERFORM CMDRETURN
This works most of the time. But occasionally (about 1 in 100 times) the program will break on the PCPERFORM line, saying that a runtime error was encountered. But it doesn't say what the runtime error is.
I'm using AREV 2.03
Any advice/ suggestions?
At 27 MAR 2003 01:14PM [url=http://www.sprezzatura.com" onMouseOver=window.status= Click here to visit our web site?';return(true)]The Sprezzatura Group[/url] wrote:
We'd guess you don't have enough memory - try SUSPENDing instead.
World Leaders in all things RevSoft
At 27 MAR 2003 03:03PM Charles Milner wrote:
I don't really want to use SUSPEND EXIT…
It runs much much slower than using PCPERFORM.
Does PCPERFORM lose a bit of memory each time it is run?
Would a FLUSH or GARBAGECOLLECT do anything?
At 27 MAR 2003 03:15PM [url=http://www.sprezzatura.com" onMouseOver=window.status= Click here to visit our web site?';return(true)]The Sprezzatura Group[/url] wrote:
Well yes, SUSPEND rolls memory out to disk thus ensuring that you have more RAM available to perform the operations you want to. PCPERFORM just loads another command processor into the RAM that is left. RAM is not static and the amount available will depend on what variables are in use. A garbagecollect and flush may help.
World Leaders in all things RevSoft