Procedure editor comes up after exit the db

kevin_w

Member
Hi,


After i close my application, each time the procedure editor comes up, it's a old progress version 8.3C. This is the startup pad from the application.

C:\DLC83D\bin\prowin32.exe -pf c:\pgdb\Program\pgdbprod.pf -basekey "INI" -ininame c:\pgdb\Program\PGDB.INI -p pgdbmenu.r

Any idea what can cause the procedure editor to run each time after exit the app ?


Thanks,


Kevin
 
Look in your .pf file. Is there a -param? The Progress startup process may be trying to interpret that as a file name to edit after the -p procedure runs.
 
No there isn't, even if i just put following line in the pf-file the editor comes up.

-db PGDB -ld PGDB

this is just enough to load the db locally.


Regards,

Kevin
 
It's ends up with this line

E:\pgdbv8.6b_9.0b\source\v8.6b\PGDBMENU.W

But there is no procedure called pgdbmenu.w
 
If you have a development licence installed (ie, one which supports running of procedure editor), and you run a session from an icon, the procedure editor will appear when your startup procedure (as defined in your icon/pf file with -p) closes. It's always been this way.

The way to avoid this is to ensure that the last command executed by your startup procedure is QUIT. So, you can modify pgdbmenu.p (or pgdbmenu.w, whichever) to include a QUIT statement, or you could create a new wrapper procedure, run from the icon, which simply does :

RUN pgdbmenu.r.
QUIT.

Check out KB entries P101489 and P19777 for some other examples.

Not sure why progress does this. Anyone know the history?
 
It has always been this way. If you start a session with no -p you get the editor. Run a procedure which does not QUIT and you come back to the editor. A -p startup procedure just saves having to type RUN ... So it is only natural that it would return to the editor.

I sometimes find this useful:

Code:
/* end.i
 *
 * if we were called from the command line via -p then quit, otherwise return
 *
 */

if program-name(2) = ? then quit. else return.
 
Back
Top