Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Error 1707 / 1116 not trapped ?
Message
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Problèmes
Titre:
Error 1707 / 1116 not trapped ?
Divers
Thread ID:
00019888
Message ID:
00019888
Vues:
98
I moved most of the code from my 2.6 error handler into VFP, with modifications. This code rebuilds cdx files that are damaged or missing, using my dictionary. Error 1707 does not seem to get trapped by VFP.

So that I can test the trouble I’m having, I have created a form with one object on it, a cancel button.
I place code in the error method, (just a wait window and return). In the init method of the form, I USE a free table with one tag in a cdx. When I manually erase the cdx, and run the form, I get a FoxPro window displaying error 1707 ‘Structural .cdx file not found". I expected the error method to be called, and it is NOT.

At his point I created an error handler prg. I placed an ON ERROR do myerror.prg in the init method, prior to the USE. Now the error method of the form is called, when I try to USE the table without the .cdx

This appears to be a bug. Why should I create an ON ERROR command, and a .prg that is not needed, just to get this one error event to fire. All other errors I encounter fire the error event, except this one.
If I create the error using ERROR 1707, it IS trapped, without the ON ERROR command.

I next created a loop that used ERROR x to create all errors between 1 and 2020 to test my handler, and discovered another error, 1116 ( Too many window open) is not trapped.

Can anyone confirm that this is also happening on their VFP 5.0, not just on mine ?
Glenn
Répondre
Fil
Voir

Click here to load this message in the networking platform