Sign up on the Revelation Software website to have access to the most current content, and to be able to ask questions and get answers from the Revelation community

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 UNASSIGNED
IF UNASSIGNED(OLD_FILENAME) OR UNASSIGNED(NEW_FILENAME) THEN RETURN
CMD=REN ":OLD_FILENAME:" ":NEW_FILENAME
PCPERFORM CMD

RETURN

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.

The Sprezzatura Group

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.

The Sprezzatura Group

World Leaders in all things RevSoft

View this thread on the forum...

  • third_party_content/community/commentary/forums_nonworks/e21743560cfca38785256cf6005dd026.txt
  • Last modified: 2023/12/28 07:40
  • by 127.0.0.1