Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

error on exit

Status
Not open for further replies.

Siddiq

MIS
Sep 23, 2000
46
PK
Dear friends..

I have a problem that when I close my applicataion
and want to quit from the prgramme it shows an error

'can not clear the object in use'

how to remove this error that I can quit from visual foxpro.

Thanks and best regards

Siddiq
 
Siddiq

Do you have "CLEAR EVENTS" somewhere in your project, preferably in your main form?

There are a number of threads on this subject, but without the search facility, it's difficult to point you in the right direction.

Chris
 
Have you set an ON SHUTDOWN event trap?

If you have and have not included the line
ON SHUTDOWN &&clear event trap
In the procedure it can loop infinately. Very annoying but easy to fix.




-Pete
 
Hi Siddiq,

It sounds to me that you have issued the CLEAR command within the event code of an object.

The simple fix is to move the CLEAR command into your main .prg after your READ EVENTS. Jon Hawkins
jonscott8@yahoo.com

The World Is Headed For Mutiny,
When All We Want Is Unity. - Creed
 
Hi friends thanks for your information.. it is working
propely .. thanks allot for your help

best regards

Siddiq
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top