Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Connection Error
Message
De
27/04/2006 15:41:09
 
 
À
27/04/2006 15:27:31
Steven Dyke
Safran Seats USA
Texas, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
Visual FoxPro
Divers
Thread ID:
01117251
Message ID:
01117258
Vues:
17
Can someone help me find out why this line of code:
>
>pdmVar.as400con2 = SQLSTRINGCONNECT(pdmConn.setConnectString(2, 'GVsvr15', 'amflib6', "drawchg", "webabc1"))
>
>Causes this error:
>
>Fatal error: Exception code=C0000005 @ 04/27/2006 02:18:42 PM. Error log file: C:\Program Files\Microsoft Visual FoxPro 9\vfp9err.log
> Called from - pdmconnections.initialas400connection line 22 {\\gvsvr03\applications\foxpro devp\drawingpdm5.0\pdmclasses.vct \\gvsvr03\applications\foxpro devp\drawingpdm5.0\pdmclasses.vct}
> Called from - setparameters line 34 {\\gvsvr03\applications\foxpro devp\drawingpdm5.0\setparameters.prg \\gvsvr03\applications\foxpro devp\drawingpdm5.0\setparameters.fxp}
> Called from - main line 39 {g:\foxpro devp\drawingpdm5.0\main.prg g:\foxpro devp\drawingpdm5.0\main.fxp}
>
>One other note:
>
>This line of code does not error out consistantly. It will be fine forr several connections and then throw the error a number of times then work okay again.



Does it work if you separate the line?
lcConnectionString=pdmConn.setConnectString(2, 'GVsvr15', 'amflib6', "drawchg", "webabc1")
pdmVar.as400con2 = SQLSTRINGCONNECT(lcConnectionString)


Alex Feldstein, MCP, Microsoft MVP
VFP Tips: English - Spanish
Website - Blog - Photo Gallery


"Once again, we come to the Holiday Season, a deeply religious time that each of us observes, in his own way, by going to the mall of his choice." -- Dave Barry
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform