Program Stack (AREV Specific)
At 24 AUG 2000 01:54:53AM Lee Fong Lun wrote:
Let me know if I'm wrong or right on this matter.
I'm using AREV version 3 installed in Novell server. Few workstations are accessing the server and running programs. I have PROGRAM1 and PROGRAM2. When I run PROGRAM1, the program will be placed in the program stack. So the program stack will have one program. In the PROGRAM1, it calls PROGRAM2, so now the program stack will have two programs. Am I right ??
When the PROGRAM2 exit and return back to PROGRAM1, will the PROGRAM2 be removed from the program stack ??
If I run the same program in various workstations, will they use the same program stack or different program stack ? How many programs a program stack can handle ??
If the program stack has a lot of programs inside and the message ERRMSG27.4 came out, will the program continue running ??
At 24 AUG 2000 03:54AM [url=http://www.sprezzatura.com" onMouseOver=window.status=Click here to visit our web site?';return(true)]The Sprezzatura Group[/url] wrote:
Programs are removed from the stack when a main execution level finishes - i.e. when a main program terminates - one that has been run. All subroutines stay on the stack until the main program closes unless they are expendable.
There is one local program stack in memory per work station.
World Leaders in all things RevSoft
At 24 AUG 2000 09:56AM Victor Engel wrote:
]I'm using AREV version 3 installed in Novell server.
The program stack is independent of the server environment. It is a client-side issue.
]Few workstations are accessing the server and running programs. I have PROGRAM1 and PROGRAM2. When I run PROGRAM1, the program will be placed in the program stack. So the program stack will have one program.
Incorrect. The program stack will have one more program than it had before, but it is already populated with several programs. You can get a list of these by breaking to the debugger and entering PS at the ! prompt.
]In the PROGRAM1, it calls PROGRAM2, so now the program stack will have two programs. Am I right ??
In addition to the ones that were already there before PROGRAM1.
]When the PROGRAM2 exit and return back to PROGRAM1, will the PROGRAM2 be removed from the program stack ??
Only if it is expendable or is at the main program level. In fact, you will see that a program will be loaded onto the stack several times sometimes.
]If I run the same program in various workstations, will they use the same program stack or different program stack ?
Think of the program stack as a block of RAM on the workstation.
]How many programs a program stack can handle ??
299
]If the program stack has a lot of programs inside and the message ERRMSG27.4 came out, will the program continue running ??
No.