Welcome to jBASE's new documentation site! Many answers to your questions can be found by searching the Knowledgebase or viewing the jBASE Documentation. We also have a Google Group for peer discussion about jBASE. If you are unable to find the information you are looking for, jBASE Support will be glad to assist in resolving your technical problems. Enjoy and please provide comments and feedback .

How can we help you?

JBASECOREDUMP

Description

This is used as a diagnostic tool for applications, and allows a snapshot of the application to be dumped to an external file for later analysis. It takes the general form:

JBASECOREDUMP(expression1, expression2)

The program variables and CALL /GOSUB stack will be dumped.

Where: 

expression1 shows the name of the operating system file to output the core dump to. It is possible to supply "" instead of a file name and jBASE allocates a filename of: /JBASECOREDUMP_nnnn_mmmmm, where nnn is the port number and mmmmmm is the process id.

expression2 is not used at present. Future versions will allow extra information to be selectively dumped. A null string is always returned from the function.

The output is in free style text format.

The function is called as:

FILE.NAME = "GLOBUSDUMP_":TIME():"_":DATE():"_":SYSTEM(18)
PRINT "Please send the file ":FILE.NAME:" to support"
OUT.FILE = JBASECOREDUMP("" , 0 )
OUT.FILE2 = JBASECOREDUMP(FILE.NAME, 0)
EXIT(99)

to output two files in the current working directory.  


Go back to jBASE BASIC.

Was this article helpful?