Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Why Clear Events is ignored?
Message
 
 
À
17/09/2004 11:38:13
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00943400
Message ID:
00943446
Vues:
12
Steve,

I have read Doug's article and actually I use his error manager in my program. And I use very similar logic as you do, application object, error hanler object, etc. And it always worked. But for some reason does not work in this particular form. I will keep looking for what is different there. And thank you for suggestion to use ERROR command. I have never used it so I will have to check the help.

>Dmitry,
>
>Check out Doug's article on error handling, it my help you out.
>
>http://www.stonefield.com/techpap.html
>
>I have an global application object, and an error handler object. When an error occurs and the application is supposed to shutdown, the error handler tells the application object to do so. It (the application object) takes care of making sure all forms are closed, cleaning up, and then quitting. There isn't any cleanup code after the READ EVENTS in my main program.
>
>Oh, instead of putting buggy code in your program, you can do error testing by using the ERROR command. That way it would be easier to do a search for ERROR and make sure you haven't left bugs laying around. :)
>
>>Steve,
>>
>>You are probably right. But what I was trying to simulate is how my program reacts to an error. First I put just a buggy code (undeclared variable) in the middle of the loop. The error manager would get it and issue Clear Events but it was not working. So I am trying to see how to deal with errors generated inside a loop.
>>
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform