Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Whats wrong in this code to generate C0..05
Message
 
To
31/07/2003 02:05:04
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00815271
Message ID:
00815278
Views:
8
Thanks for responding Craig

>I think it's the RELEASE _SCREEN.oSH. According to the VFP help file you can RELEASE a memvar, but it says nothing about properties.

No go. In fact because I was getting the error I had put in this line. I just tried it again, without this line the error remains.

Also I just found out that though (err or not) this min. to systray work in the app when run from the VFP environment. It stopped working when run from an installed exe of the same app.


>
>
>>Hi all
>>
>>In my app class Init():
>>
	IF THIS.lMinToSysTray
>>		SET LIBRARY TO bbsystray.fll ADDITIVE
>>
>>		_SCREEN.ADDPROPERTY("oSH")
>>		_SCREEN.oSH = CREATEOBJECT("ScreenHook")
>>	ENDIF
>>
>>In the app class Destroy()
>>
IF THIS.lMinToSysTray
>>	_SCREEN.oSH = .NULL.
>>
>>	RELEASE _SCREEN.oSH
>>
>>	RELEASE LIBRARY bbsystray.fll
>>ENDIF
>>
>>
>>When 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.
>>
>>So I guess something is wrong with this code.
>>
>>What am I doing wrong. Please advise.
Regards
Bhavbhuti
___________________________________________
Softwares for Indian Businesses at:
http://venussoftop.tripod.com
___________________________________________
venussoftop@gmail.com
___________________________________________
Previous
Reply
Map
View

Click here to load this message in the networking platform