>>ITEM : N00077
>>DATE: 07/10/96
>>TYPE: Information
>>TITLE: NetLib, Funcky, Blinker and Clipper S87 cause !2125 error at program end
>>PRODUCT(S):
NetLib for Clipper (all versions)
>>PLATFORMS(S):
Clipper Summer 87,
Funcky,
Blinker
>>SUMMARY:
A Summer-87 program using NetLib and Funcky, compiled with
Blinker causes a !2125 error at program end.
>>MORE INFORMATION:
Using NetLib and the Funcky time-based functions together
(e.g.,CLOCK12, GMTCLOCK, etc.) sometimes produces a benign
but annoying '2125' error at program termination.
Both NetLib and Funcky "hook" various interrupt vectors. These
vectors must be "unhooked" in the reverse order in which they
were hooked. Thus, if Funcky hooks an interrupt AFTER NetLib,
Funcky must unhook it BEFORE NetLib. The problem arises when
interrupts are unhooked out of order.
NetLib unhooks interrupts automatically at program end; recent
versions of Funcky do, too. However, earlier versions of Funcky
do not.
>>RESOLUTION/FIX:
There are several ways to avoid this based on the version of
Funcky being used.
FUNCKY 2.x
>>EXAMPLE(S):
* use ONQUIT to explicitly unhook interrupts at program end
GMTCLOCK(...)
* hook Funcky interrupts
CLOCK12(...)
N_READY()
* hook NetLib interrupts
N_ONQUIT("exitcode")
...
PROCEDURE exitcode
CLOSE ALL
N_UNHOOK()
* unhook NetLib interrupts
UNCLOCK12()
* unhook Funcky functions
UNGMTCLOCK()
RETURN
>>SEE ALSO:
N00078, N00079
>>COPYRIGHT 1997 Communication Horizons
All rights reserved worldwide.
No distribution without specific consent of publisher.
Knowledgebase
Top Home