Home

Communication Horizons
established 1986

Home
Contact

 

Knowledgebase Index
About Us
Contact
Legacy Products


Communication Horizons
65 High Ridge Rd. #428
Stamford CT 06905

support

800-480-1604
203-321-1278
fax  286-1056

       

Knowledgebase


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

 
The easiest way is to issue the Funcky timer-based function (e.g., CLOCK12, GMTCLOCK) *before* N_READY.
Issue N_2125(.F.) after N_READY to suppress the display of 2125 error messages.
If the Funcky timer-based function must be issued after N_READY, then "unhook" the Funcky functions in an exit- procedure using N_ONQUIT (or EXIT PROCEDURE in Clipper 5.2).

FUCNKY 1.x
Issue N_2125(.F.) after N_READY to suppress the display of 2125 error messages.
Issue the Funcky function before N_READY and later "Unhook" the Funcky functions in an exit-procedure using N_ONQUIT (or EXIT PROCEDURE in Clipper 5.2).

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

 

© Copyright 2001 Communication Horizons LLC.
“NetLib” and “Encryptionizer” are Registered Trademarks of Communication Horizons.
US and international patents pending.
Updated 29 Dec 2001