Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Close open transactions in IDE
Message
From
12/04/2015 15:57:10
Lutz Scheffler
Lutz Scheffler Software Ingenieurbüro
Dresden, Germany
 
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows Server 2012
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Web
Miscellaneous
Thread ID:
01618253
Message ID:
01618257
Views:
43
>If during development, debugging (in VFP IDE) you get error
>"Data session ## cannot be released with open transactions" how do you get around it, without having to End the Task in the Task Manager?

snippet out of the QUERYUNLOAD of my forms
 IF .DATASESSION=2 THEN
  lnLoop1 = TXNLEVEL()
  DO WHILE lnLoop1>0
   ROLLBACK
   lnLoop1 = lnLoop1-1
  ENDDO && lnLoop1>0
  lnLoop1 = AUSED(laTables)

  FOR lnLoop2 = 1 TO lnLoop1
   IF CURSORGETPROP('BUFFERING',laTables(lnLoop2,1))>1 THEN
    TABLEREVERT(True,laTables(lnLoop2,1))
   ENDIF &&CURSORGETPROP('BUFFERING',laTables(lnLoop2,1))>1
  ENDFOR &&lnLoop2
*SF 08.09.2003 Close Tables moved to DESTROY
*!*	  CLOSE TABLES ALL
*  CLOSE ALL EXTENDED
 ENDIF &&.DATASESSION=2
HTH
Words are given to man to enable him to conceal his true feelings.
Charles Maurice de Talleyrand-Périgord

Weeks of programming can save you hours of planning.

Off

There is no place like [::1]
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform