Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Datasessions and Transactions
Message
 
À
26/07/1996 23:25:06
Information générale
Forum:
Visual FoxPro
Catégorie:
Problèmes
Divers
Thread ID:
00004646
Message ID:
00004651
Vues:
46
>I am getting datasessions that stick around (Unknown(2) etc...) when a form closes after triggers have fired for code generated by the RI Builder.
>
>I am wrapping my TABLEUPDATES() within a transaction. If I comment out my BEGIN TRANSACTION, ROLLBACK and END TRANSACTION statements, the problem doesn't occur. The RI code is also using transactions and I don't know if this is causing the problem somehow.
>
>If anyone has any ideas or suggestions, I would appreciate any help.
>
>Also, if anyone has comments on using the RI Builder to create the RI code, please post.

Doug

Remember not to use certain commands in transactions -- look in Help. TableRevert() is one of them. Remember a transaction is a buffer. When you TableUpdate() you copy to the second buffer -- the Transaction buffer. If you RollBack 'then' you need to TableRevert() (after the Rollback!!!)

Just remember you are working with two sets of Buffers. Try and keep your buffers straight.

HTH,
Tom
Tom
--------------------------------
Tom O'Hare
407-299-4268 -- tom@redtile.com -- http://www.redtile.com/
Independent Programmer Using Visual FoxPro, Visual Basic & more...
Operations Manager -- Virtual FoxPro User Group (VFUG)
http://www.vfug.org/ -- tom@vfug.org
President -- Central Florida FoxPro User Group (CFFUG)
http://www.redtile.com/foxpro/
Universal Thread Most Valued Professional (MVP)
http://www.transformation.com/foxpro/
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform