Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
No table is open in the current work area
Message
 
 
À
25/06/2015 10:23:15
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows Server 2012
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Web
Divers
Thread ID:
01621440
Message ID:
01621454
Vues:
59
>>>Instead of trying to find which process has changed the workarea to an unused one (could be anything that selects into a cursor and then closes it without restoring the workarea on exit), why not just select the one you want immediately before the scatter command?
>>
>>I am glad that you and I think alike :). Yes, as soon as I found this error (which was in the program for a while and the customer(s) never reported it, until I found it in the error log), I added SELECT (AliasName), so in this specific place I won't see this problem.
>>
>>But I was wondering, in general, if there is another place in the program that could potentially cause a problem. I am trying to make my application completely error free :)
>
>It might be more prudent to TRY... CATCH with original code in try and fix in catch - plus logging to show IF it was a spurious or regular error. Then you can decide if you need to follow the steps outlined in other post, but the program can carry on IAC.
>
>my 0.02€
>
>thomas

Thank you. I do add TRY ... CATCH in a lot of places, as time permits.
"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
Répondre
Fil
Voir

Click here to load this message in the networking platform