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:
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.