Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Active Datasessions in the Call Stack?
Message
De
20/02/2009 16:13:32
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Active Datasessions in the Call Stack?
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Network:
Windows 2008 Server
Database:
Visual FoxPro
Application:
Desktop
Divers
Thread ID:
01383185
Message ID:
01383185
Vues:
86
Is there a way to know what datasession is active for each line #/program level in the call stack?
Meaning, let's say I have the following call stack:

CALL STACK
///////////////////////////////////////////////

6 MyGlobalErrorObject.HANDLE_ERROR

5 MyGlobalErrorObject.ERROR

4 SomeForm.Button.ERROR

3 SomeForm.Button.CLICK

2 MyApp.ReadEvents

1 MAIN.PRG

In the error handler HANDLE_ERROR method (program level 6 in this example), is there any way to know what datasession is/was active when the error condition in program level 3 occurred?

What I would like to do in the error handler is switch to the datasession the error occurred in and gather state on open tables/views/record pointers etc...

Thanks.
William Fields
MCSD - Microsoft Visual FoxPro
MCP - Win2k Pro
US Bankruptcy Court
Phoenix, AZ
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform