If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > Pervasive.SQL > w3btrv7.dll Timing Issue

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 02-28-07, 17:13
Cturner Cturner is offline
Registered User
 
Join Date: Feb 2007
Posts: 3
w3btrv7.dll Timing Issue

We are running Pervasive 8.7 using Microfocus Cobol and also accessing through VB .net and during one of our Cobol application if the user exits a sales order (which then the application issues the unlock command) and then immediately tries to go back into the same sale, they are receiving a message stating the sale is locked by their own user id. The unlock is issued using btrieve and by calling w3btrv7.dll. After the call is made the btrieve status is checked to see if it was successful. What we are wondering is if there are network issues or "slows" on the system, does w3btrv7.dll retry to access the file or will it "queue" and wait until it can get access, thus not returning an invalid status but also not unlocking the file until it has access? Does anyone know how this dll works and what controls there are on it?
Thanks.
Reply With Quote
  #2 (permalink)  
Old 02-28-07, 21:59
mirtheil mirtheil is offline
Registered User
 
Join Date: Dec 2001
Posts: 1,026
If the BTRV call to unlock the record comes back with a status 0, then the record is unlocked.

What actual Btrieve error code is being returned by the Cobol program when it says it's locked?
__________________
Mirtheil Software
Certified Pervasive Developer
Certified Pervasive Technician
Custom Btrieve/VB development
http://www.mirtheil.com
I do not answer questions by email. Please post on the forum.
Reply With Quote
  #3 (permalink)  
Old 03-01-07, 08:12
Cturner Cturner is offline
Registered User
 
Join Date: Feb 2007
Posts: 3
w3btrv7.dll Timing Issue

It would appear that it is returning with a zero but the problem is that the application was written to set the status to zero PRIOR to the call so we don't know if the program is moving on without Pervasive really returning a value. The thought is that the call is being made and because of slowness in the system (the application is connecting to a terminal server not directly to the database server) Pervasive is "queing" up the request and the program doesn't truly wait for Pervasive to return a value. Do you know if this is possible? Would Pervasive truly return control to the calling program without receiving a status?
Thanks.
Reply With Quote
  #4 (permalink)  
Old 03-01-07, 08:26
mirtheil mirtheil is offline
Registered User
 
Join Date: Dec 2001
Posts: 1,026
Quote:
Do you know if this is possible? Would Pervasive truly return control to the calling program without receiving a status?
No. Pervasive will not return control without receiving a status.
__________________
Mirtheil Software
Certified Pervasive Developer
Certified Pervasive Technician
Custom Btrieve/VB development
http://www.mirtheil.com
I do not answer questions by email. Please post on the forum.
Reply With Quote
  #5 (permalink)  
Old 03-01-07, 08:55
Cturner Cturner is offline
Registered User
 
Join Date: Feb 2007
Posts: 3
Thank you - that is what I needed to know!
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On