Michael

I assume we're LOOKING at MAIN.CMD?

If so, it's defintely a no no to QUIT TO MAIN.CMD from within MAIN.CMD!!
Why would you do that?  If you want it at that point to start over at the
beginning of the file, just add

LABEL TOP at the top

and replace

QUIT TO MAIN.CMD with GOTO TOP

QUIT TO MAIN.CMD belongs at the END of the sub-routines you call from
MAIN.CMD so it will return to the main menu program.

David

David Blocker
[EMAIL PROTECTED]
781-784-1919
Fax: 781-784-1860
Cell: 339-206-0261
----- Original Message -----
From: "Michael Moser" <[EMAIL PROTECTED]>
To: "RBG7-L Mailing List" <[email protected]>
Sent: Wednesday, May 25, 2005 1:48 PM
Subject: [RBG7-L] - R:Base 7.5/7.1 creates 2 GB swap file on exit


Here is an odd one - R:Base 7.1 or 7.5 running under XP Pro SP2

This is part of a file that loops back on itself to redisplay a menu.  I
have used this same process successfully in R:Base 6 without problems.

If the "Quit to Main.cmd" is simply in the program and the "Exit" line is
executed, R:Base brings the system to it's knees for about 3 minutes while 2
GB is written to the swap file then deleted.  Then all is back to normal.

if the "Quit to Main.cmd" line is commented out the "Exit" command works
fine, no delays.  I can't see a reason for this as the "Quit" command is
farther down in the code and should never be executed when "EXIT" is
executed.

No database even needs to be connected so it is not a database issue.

------------------------
CLS

CHOOSE vans +
FROM +
#LIST 'Safe Deposit,Box Inventory,Video Tapes,R> Prompt,Exit' +
AT CENTER CENTER CAPTION 'Record Selection'

IF vans = '[ESC]' OR vans = 'R> Prompt' THEN
  QUIT TO cleanup.cmd
ENDIF

IF vans = 'Exit' THEN
  EXIT
ENDIF

-- other conditions here

IF vans = 'Safe Deposit' THEN
  QUIT TO safe.cmd
ENDIF

*(causes 2 GB to be written to the Swap file then deleted if the "EXIT"
command above is executed.)
QUIT TO main.cmd

RETURN

-----------------------

Any thoughts?

Thanks,
Michael



Michael Moser
EXAQ Micro Services
www.exaq.com
Phone: 916-966-8313
Fax: 916-244-0582

Reply via email to