IF THIS.lMinToSysTray SET LIBRARY TO bbsystray.fll ADDITIVE _SCREEN.ADDPROPERTY("oSH") _SCREEN.oSH = CREATEOBJECT("ScreenHook") ENDIFIn the app class Destroy()
IF THIS.lMinToSysTray _SCREEN.oSH = .NULL. RELEASE _SCREEN.oSH RELEASE LIBRARY bbsystray.fll ENDIFWhen this code is executed based on .T. of the flag on exiting the application I generate a C0..05 but when this code is not executed (.F.) then no errors are generated.