General information
Category:
Coding, syntax & commands
>>>>Hi
>>>>
>>>>I've installed an on error routine in an application.
>>>>
>>>>Its an old app that has a lot of errors and users are used to ignoring them. I've put in an ON ERROR routine so I can log the errors and iron out the worst offenders.
>>>>
>>>>In the on error routine I give the user the choice of carrying on or quitting.
>>>>
>>>>If they select quit I
>>>>
>>>>CLEAR EVENTS
>>>>QUIT
>>>>
>>>>But sometimes when the users select quit they get Cannot Quit Visual Foxpro.
>>>>
>>>>I suspect there are paths through the system that may issue another READ EVENTS. Could this cause the problem above ? Are READ EVENTS nested ?
>>>>
>>>
>>>What Hilmar said. But also, that message often reflects an ON SHUTDOWN in effect.
>>>
>>>Tamar
>>
>>Hi Tamar
>>
>>There's no on shutdown in operation.
>>
>>I think it must be dangling references as Sergey mentioned.
>>
>>If I have a READ EVENTS in operation and in the ON ERROR code I CLEAR EVENTS why would that not work
>
>Get rid of the QUIT and then put a breakpoint on CLEAR EVENTS and trace what happens after that to see what the problem is.
>
>Tamar
Good idea but
As this is a problem that occurs intermittently in a multi user environment in a very disorganised application that not going to tell me much.
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only