>>ITEM: N00108
>>DATE: 08/30/96
>>TYPE: Information
>>TITLE: Error terminating program with NetLib and Telepathy
>>PRODUCT(S):
NetLib (all versions) for Clipper
>>PLATFORMS(S):
>>SUMMARY:
Program using NetLib and Telepathy (Extrasensory Software)
generates error and/or hangs at program termination.
>>MORE INFORMATION:
Both NetLib and Telepathy hook interrupts. They must be unhooked
in the reverse order in which they are hooked. NetLib will
unhook them automatically at program end or explicitly using
N_UNHOOK. Telepathy requires the TP_UNINSTALL() function.
>>RESOLUTION/FIX:
Ensure that NetLib and Telepathy unhook interrupts in the reverse
order in which they were hooked (NetLib hooks interrupts during
N_READY) by explicitly issuing N_UNHOOK immediately before
TP_UNINSTALL().
Consider using N_ONQUIT from NetLib or the Clipper EXIT PROCEDURE
to ensure that the functions are issued even if the program
terminates abnormally.
>>EXAMPLE(S):
N_ONQUIT("MYQUIT")
or
EXIT PROCEDURE
DO MYQUIT
RETURN
* at program end
PROCEDURE MYQUIT
N_UNHOOK()
TP_UNINSTALL()
QUIT
RETURN
>>SEE ALSO:
>>COPYRIGHT 1997 Communication Horizons
All rights reserved worldwide.
No distribution without specific consent of publisher.
Knowledgebase
Top Home