ON EXIT

56 views
Skip to first unread message

David McGehee

unread,
May 11, 2009, 12:13:07 PM5/11/09
to jB...@googlegroups.com

I seem to remember reading that jBase had an ON EXIT function available for a program.  I cannot find the documentation.  Does it exist?  Has anyone used it?  We are having a problem with Program level tasks disappearing on Windows Server 2003 (new problem but have been on 2003 for long time) and need to document state of program when it terminates.  (Window for task was jstarted so it terminates as well.)

jBase Version is 4.1.5.17 patch 5690

Jim Idle

unread,
May 11, 2009, 1:15:44 PM5/11/09
to jB...@googlegroups.com
David McGehee wrote:

I seem to remember reading that jBase had an ON EXIT function available for a program.  I cannot find the documentation.  Does it exist?  Has anyone used it?  We are having a problem with Program level tasks disappearing on Windows Server 2003 (new problem but have been on 2003 for long time) and need to document state of program when it terminates.  (Window for task was jstarted so it terminates as well.)

jBase Version is 4.1.5.17 patch 5690

I think you are thinking of:

JBC_TCLRESTART set to command to execute instead of shell
JBC_ENDRESTART set to command to execute after end from debugger
JBCRESTARTPROG set to command to execute after off (unix/Linux only)


But these won't help if the program is crashing. With background programs I have noticed that that if the TERM variable is unset and a program tries to print, then it crashes hard. Try making sure that you have set TERM to something and check any new programs for trying to print as a background job.

Jim

Daniel Klein

unread,
May 11, 2009, 1:52:25 PM5/11/09
to jB...@googlegroups.com
The documentation for ON.EXIT is on the AUTOLOGOUT page.

Dan

David McGehee

unread,
May 11, 2009, 2:50:49 PM5/11/09
to jB...@googlegroups.com

These processes are run on console windows, not via telnet.  Also, because a window is jstarted for each process, when the process terminates the window terminates.  They are not going into debugger nor exiting to shell.  That was why I was looking for an ON EXIT type of function which would be called as the processed terminated.

Jim Idle

unread,
May 11, 2009, 6:20:03 PM5/11/09
to jB...@googlegroups.com
David McGehee wrote:

These processes are run on console windows, not via telnet.

Should not make a difference.

Also, because a window is jstarted for each process, when the process terminates the window terminates.  They are not going into debugger nor exiting to shell.  That was why I was looking for an ON EXIT type of function which would be called as the processed terminated.

But what would you do in the ON.EXIT that would help you debug your code? Why not just single step through the code with the debugger? That's what it there for. Use subroutine breaks to narrow it down to a subroutine, then single step.

JIm

Daniel Klein

unread,
May 11, 2009, 9:46:18 PM5/11/09
to jB...@googlegroups.com
I sent this once but  didn't see it come  through so I'm resending it...

The documentation for ON.EXIT is on the AUTOLOGOUT page.

Dan

Jim Idle

unread,
May 12, 2009, 11:01:36 AM5/12/09
to jB...@googlegroups.com
Daniel Klein wrote:
I sent this once but  didn't see it come  through so I'm resending it...

The documentation for ON.EXIT is on the AUTOLOGOUT page.
Bloody double poster! You're fired.

Jim

David McGehee

unread,
May 12, 2009, 11:05:11 AM5/12/09
to jB...@googlegroups.com

Actually, Gentlemen, the documentation is on page 60 of the programmer’s guide.  The function is called CALLONEXIT

 

From: jB...@googlegroups.com [mailto:jB...@googlegroups.com] On Behalf Of Jim Idle
Sent: Tuesday, May 12, 2009 10:02 AM
To: jB...@googlegroups.com
Subject: Re: ON EXIT

 

Daniel Klein wrote:

Jim Idle

unread,
May 12, 2009, 11:25:52 AM5/12/09
to jB...@googlegroups.com
David McGehee wrote:

Actually, Gentlemen, the documentation is on page 60 of the programmer’s guide.  The function is called CALLONEXIT

Hi David,

I still think that you should learn to use the jBASE debugger and single step, you will soon find the issue and it will allow you to pin down future issues much more quickly.

Jim

Charlie Noah

unread,
May 12, 2009, 11:38:25 AM5/12/09
to jB...@googlegroups.com
Has anyone noticed that the knowledgebase search isn't working, or is it something wrong on my end?

url: http://www.jbase.com/jsearch.html

This is what I see:

Search jBASE
 


 

Look for words with the same prefix. For example, in your query form type key to find key, keying, keyhole, keyboard, and so on.


etc.


I can see a cursor between the lines, but the text I type doesn't echo, and nothing happens when I press <Enter>.

Thanks,
Charlie Noah
Inland Truck Parts

Jim Idle

unread,
May 12, 2009, 11:59:45 AM5/12/09
to jB...@googlegroups.com
Charlie Noah wrote:
Has anyone noticed that the knowledgebase search isn't working, or is it something wrong on my end?

url: http://www.jbase.com/jsearch.html

This is what I see:
It is working, but it is extremely slow while it waits for the external search engine to work. Generally you are better with Google:

jgrep site:jbase.com

Jim

Ahmet Baysa

unread,
May 12, 2009, 2:59:28 PM5/12/09
to jB...@googlegroups.com
knowledgebase is very slow... it really need to be maintained....
 
Regards,
Ahmet

Reply all
Reply to author
Forward
0 new messages