SqueakinSweep
Programmer
I have a very simple fox app, which is used to generate bar codes. It consists of one form only. The form has ShowWindow set to 2 (Top Level Form). When the exit button is clicked the application closes ok, but quite often leaves itself in the Task List. It also uses an ActiveX control for the printing of the labels, which I create an instance of and hold in a form property THISFORM.oActiveX
I have the following code in a runner prg to start the app
And this code in QuitPrg
And the exit button has the follwing code behind. I had to rem out the ActiveX dispose code, as it caused errors
Anyone have any ideas how to dispose of everything properly?
Sweep
...if it works dont mess with it
I have the following code in a runner prg to start the app
Code:
close all
on shutdown quit
set status bar off
set echo off
set talk off
set deleted on
set safety off
set carry off
set date british
application.visible=.f.
do form labels
read events
do quitprg
And this code in QuitPrg
Code:
clear events
close all
set status bar on
quit
And the exit button has the follwing code behind. I had to rem out the ActiveX dispose code, as it caused errors
Code:
*--Remove the ActiveX Object
*!* IF TYPE(THISFORM.oActiveX)="O"
*!* THISFORM.oActiveX.Quit()
*!* THISFORM.oActiveX=.F.
*!* ENDIF
THISFORM.RELEASE
Anyone have any ideas how to dispose of everything properly?
Sweep
...if it works dont mess with it