Node:Deinitializing the Prolog Engine From VB, Next:Loading the Prolog code, Previous:Initializing the Prolog Engine From VB, Up:How to use the interface
The Visual Basic interface should be deinitialized: you should call
PrologDeInit
before exiting, e.g., from a Form_Unload
method. The PrologInit
function unloads and deinitializes the
interface and returns any memory used by the interface to the operating
system.
This procedure was introduced in SICStus 3.10.1. Earlier versions never
deinitialized the SICStus engine. This could cause problems, e.g. by
leaving memory allocated and by not giving foreign resources a chance to
clean up through their deinit
functions.