dbTalk Databases Forums  

qLocate Fails on Firebird DB after 1 hour of Inactivity

comp.databases.paradox comp.databases.paradox


Discuss qLocate Fails on Firebird DB after 1 hour of Inactivity in the comp.databases.paradox forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Gene De Guzman
 
Posts: n/a

Default qLocate Fails on Firebird DB after 1 hour of Inactivity - 04-20-2008 , 05:47 PM






Hi All,

I have a timekeeping system that is connected thru a mapped drive to a
firebird DB.
Everything works fine when a lot of people are coming IN & OUT.
When the workstation is idle IDLE for about 1 hour, my IF NOT
tc.qlocate(empID) would fail for all subsequent users and the user would
need to exit my application and go back in (not logoff the PC but only exit
pdox) and everything works fine again.

All power schemes for the PC and NICs are set to never. We even added a
registry entry in the server to allow unlimited autodisconnect timeout but
this has not solved te problem. Before a tc.qlocate(empID) is performed, we
have IF NOT tc.Open("ATA:EMPFILE") ... and this does not raise an error.
I have a timer running on the form that displays the date and time. We have
tried to duplicate the problem in another small server and the problem does
not happen.

Any ideas?

TIA.

Gene



Reply With Quote
  #2  
Old   
Roy F
 
Posts: n/a

Default Re: qLocate Fails on Firebird DB after 1 hour of Inactivity - 04-20-2008 , 07:58 PM






Hi Gene,

Quote:
When the workstation is idle IDLE for about
1 hour, my IF NOT tc.qlocate(empID) would fail
I'm not sure why it fails, but I can tell you that using TCursors and
any other Paradox specific construct against a CS database will only
lead to problems. It is not a question of if, but when. In the time it
takes you to figure this out, you can probably replace the TCursor with
a Firebird stored procedure using SQL which will work reliably every
time. Probably not what you wanted to hear, but I believe it is by far
the best way to go.

Regards,
RoyF



Gene De Guzman wrote:
Quote:
Hi All,

I have a timekeeping system that is connected thru a mapped drive to a
firebird DB.
Everything works fine when a lot of people are coming IN & OUT.
When the workstation is idle IDLE for about 1 hour, my IF NOT
tc.qlocate(empID) would fail for all subsequent users and the user would
need to exit my application and go back in (not logoff the PC but only exit
pdox) and everything works fine again.

All power schemes for the PC and NICs are set to never. We even added a
registry entry in the server to allow unlimited autodisconnect timeout but
this has not solved te problem. Before a tc.qlocate(empID) is performed, we
have IF NOT tc.Open("ATA:EMPFILE") ... and this does not raise an error.
I have a timer running on the form that displays the date and time. We have
tried to duplicate the problem in another small server and the problem does
not happen.

Any ideas?

TIA.

Gene



Reply With Quote
  #3  
Old   
Roy F
 
Posts: n/a

Default Re: qLocate Fails on Firebird DB after 1 hour of Inactivity - 04-20-2008 , 07:58 PM



Hi Gene,

Quote:
When the workstation is idle IDLE for about
1 hour, my IF NOT tc.qlocate(empID) would fail
I'm not sure why it fails, but I can tell you that using TCursors and
any other Paradox specific construct against a CS database will only
lead to problems. It is not a question of if, but when. In the time it
takes you to figure this out, you can probably replace the TCursor with
a Firebird stored procedure using SQL which will work reliably every
time. Probably not what you wanted to hear, but I believe it is by far
the best way to go.

Regards,
RoyF



Gene De Guzman wrote:
Quote:
Hi All,

I have a timekeeping system that is connected thru a mapped drive to a
firebird DB.
Everything works fine when a lot of people are coming IN & OUT.
When the workstation is idle IDLE for about 1 hour, my IF NOT
tc.qlocate(empID) would fail for all subsequent users and the user would
need to exit my application and go back in (not logoff the PC but only exit
pdox) and everything works fine again.

All power schemes for the PC and NICs are set to never. We even added a
registry entry in the server to allow unlimited autodisconnect timeout but
this has not solved te problem. Before a tc.qlocate(empID) is performed, we
have IF NOT tc.Open("ATA:EMPFILE") ... and this does not raise an error.
I have a timer running on the form that displays the date and time. We have
tried to duplicate the problem in another small server and the problem does
not happen.

Any ideas?

TIA.

Gene



Reply With Quote
  #4  
Old   
Roy F
 
Posts: n/a

Default Re: qLocate Fails on Firebird DB after 1 hour of Inactivity - 04-20-2008 , 07:58 PM



Hi Gene,

Quote:
When the workstation is idle IDLE for about
1 hour, my IF NOT tc.qlocate(empID) would fail
I'm not sure why it fails, but I can tell you that using TCursors and
any other Paradox specific construct against a CS database will only
lead to problems. It is not a question of if, but when. In the time it
takes you to figure this out, you can probably replace the TCursor with
a Firebird stored procedure using SQL which will work reliably every
time. Probably not what you wanted to hear, but I believe it is by far
the best way to go.

Regards,
RoyF



Gene De Guzman wrote:
Quote:
Hi All,

I have a timekeeping system that is connected thru a mapped drive to a
firebird DB.
Everything works fine when a lot of people are coming IN & OUT.
When the workstation is idle IDLE for about 1 hour, my IF NOT
tc.qlocate(empID) would fail for all subsequent users and the user would
need to exit my application and go back in (not logoff the PC but only exit
pdox) and everything works fine again.

All power schemes for the PC and NICs are set to never. We even added a
registry entry in the server to allow unlimited autodisconnect timeout but
this has not solved te problem. Before a tc.qlocate(empID) is performed, we
have IF NOT tc.Open("ATA:EMPFILE") ... and this does not raise an error.
I have a timer running on the form that displays the date and time. We have
tried to duplicate the problem in another small server and the problem does
not happen.

Any ideas?

TIA.

Gene



Reply With Quote
  #5  
Old   
Roy F
 
Posts: n/a

Default Re: qLocate Fails on Firebird DB after 1 hour of Inactivity - 04-20-2008 , 07:58 PM



Hi Gene,

Quote:
When the workstation is idle IDLE for about
1 hour, my IF NOT tc.qlocate(empID) would fail
I'm not sure why it fails, but I can tell you that using TCursors and
any other Paradox specific construct against a CS database will only
lead to problems. It is not a question of if, but when. In the time it
takes you to figure this out, you can probably replace the TCursor with
a Firebird stored procedure using SQL which will work reliably every
time. Probably not what you wanted to hear, but I believe it is by far
the best way to go.

Regards,
RoyF



Gene De Guzman wrote:
Quote:
Hi All,

I have a timekeeping system that is connected thru a mapped drive to a
firebird DB.
Everything works fine when a lot of people are coming IN & OUT.
When the workstation is idle IDLE for about 1 hour, my IF NOT
tc.qlocate(empID) would fail for all subsequent users and the user would
need to exit my application and go back in (not logoff the PC but only exit
pdox) and everything works fine again.

All power schemes for the PC and NICs are set to never. We even added a
registry entry in the server to allow unlimited autodisconnect timeout but
this has not solved te problem. Before a tc.qlocate(empID) is performed, we
have IF NOT tc.Open("ATA:EMPFILE") ... and this does not raise an error.
I have a timer running on the form that displays the date and time. We have
tried to duplicate the problem in another small server and the problem does
not happen.

Any ideas?

TIA.

Gene



Reply With Quote
  #6  
Old   
Roy F
 
Posts: n/a

Default Re: qLocate Fails on Firebird DB after 1 hour of Inactivity - 04-20-2008 , 07:58 PM



Hi Gene,

Quote:
When the workstation is idle IDLE for about
1 hour, my IF NOT tc.qlocate(empID) would fail
I'm not sure why it fails, but I can tell you that using TCursors and
any other Paradox specific construct against a CS database will only
lead to problems. It is not a question of if, but when. In the time it
takes you to figure this out, you can probably replace the TCursor with
a Firebird stored procedure using SQL which will work reliably every
time. Probably not what you wanted to hear, but I believe it is by far
the best way to go.

Regards,
RoyF



Gene De Guzman wrote:
Quote:
Hi All,

I have a timekeeping system that is connected thru a mapped drive to a
firebird DB.
Everything works fine when a lot of people are coming IN & OUT.
When the workstation is idle IDLE for about 1 hour, my IF NOT
tc.qlocate(empID) would fail for all subsequent users and the user would
need to exit my application and go back in (not logoff the PC but only exit
pdox) and everything works fine again.

All power schemes for the PC and NICs are set to never. We even added a
registry entry in the server to allow unlimited autodisconnect timeout but
this has not solved te problem. Before a tc.qlocate(empID) is performed, we
have IF NOT tc.Open("ATA:EMPFILE") ... and this does not raise an error.
I have a timer running on the form that displays the date and time. We have
tried to duplicate the problem in another small server and the problem does
not happen.

Any ideas?

TIA.

Gene



Reply With Quote
  #7  
Old   
Roy F
 
Posts: n/a

Default Re: qLocate Fails on Firebird DB after 1 hour of Inactivity - 04-20-2008 , 07:58 PM



Hi Gene,

Quote:
When the workstation is idle IDLE for about
1 hour, my IF NOT tc.qlocate(empID) would fail
I'm not sure why it fails, but I can tell you that using TCursors and
any other Paradox specific construct against a CS database will only
lead to problems. It is not a question of if, but when. In the time it
takes you to figure this out, you can probably replace the TCursor with
a Firebird stored procedure using SQL which will work reliably every
time. Probably not what you wanted to hear, but I believe it is by far
the best way to go.

Regards,
RoyF



Gene De Guzman wrote:
Quote:
Hi All,

I have a timekeeping system that is connected thru a mapped drive to a
firebird DB.
Everything works fine when a lot of people are coming IN & OUT.
When the workstation is idle IDLE for about 1 hour, my IF NOT
tc.qlocate(empID) would fail for all subsequent users and the user would
need to exit my application and go back in (not logoff the PC but only exit
pdox) and everything works fine again.

All power schemes for the PC and NICs are set to never. We even added a
registry entry in the server to allow unlimited autodisconnect timeout but
this has not solved te problem. Before a tc.qlocate(empID) is performed, we
have IF NOT tc.Open("ATA:EMPFILE") ... and this does not raise an error.
I have a timer running on the form that displays the date and time. We have
tried to duplicate the problem in another small server and the problem does
not happen.

Any ideas?

TIA.

Gene



Reply With Quote
  #8  
Old   
Roy F
 
Posts: n/a

Default Re: qLocate Fails on Firebird DB after 1 hour of Inactivity - 04-20-2008 , 07:58 PM



Hi Gene,

Quote:
When the workstation is idle IDLE for about
1 hour, my IF NOT tc.qlocate(empID) would fail
I'm not sure why it fails, but I can tell you that using TCursors and
any other Paradox specific construct against a CS database will only
lead to problems. It is not a question of if, but when. In the time it
takes you to figure this out, you can probably replace the TCursor with
a Firebird stored procedure using SQL which will work reliably every
time. Probably not what you wanted to hear, but I believe it is by far
the best way to go.

Regards,
RoyF



Gene De Guzman wrote:
Quote:
Hi All,

I have a timekeeping system that is connected thru a mapped drive to a
firebird DB.
Everything works fine when a lot of people are coming IN & OUT.
When the workstation is idle IDLE for about 1 hour, my IF NOT
tc.qlocate(empID) would fail for all subsequent users and the user would
need to exit my application and go back in (not logoff the PC but only exit
pdox) and everything works fine again.

All power schemes for the PC and NICs are set to never. We even added a
registry entry in the server to allow unlimited autodisconnect timeout but
this has not solved te problem. Before a tc.qlocate(empID) is performed, we
have IF NOT tc.Open("ATA:EMPFILE") ... and this does not raise an error.
I have a timer running on the form that displays the date and time. We have
tried to duplicate the problem in another small server and the problem does
not happen.

Any ideas?

TIA.

Gene



Reply With Quote
  #9  
Old   
Tom Krieg
 
Posts: n/a

Default Re: qLocate Fails on Firebird DB after 1 hour of Inactivity - 04-21-2008 , 12:14 AM



This sounds like the server is disconnecting from the Paradox session.
Have you updated your Firebird software?

Now, I trust you're not going to say that you're using the native BDE
Interbase SQL Link to access a Firebird database using a TCursor.
Because if you are then you are boldly walking into the cavern of a
vicious, fiery dragon without armour or a sword and not even your faith
in all things good will save you.

I can't stress enough that direct access to SQL server tables in Paradox
will cause grief. Tcursors are particularly prone to causing problems.
If you access a Firebird database using the native Interbase link well,
Firebird's had numerous releases and updates since the Interbase 6
code-base turned into Firebird 0.0.1 so something MUST have changed.

You will eventually confront the reasons why everyone says not to do it.

Gene De Guzman wrote:
Quote:
Hi All,

I have a timekeeping system that is connected thru a mapped drive to a
firebird DB.
Everything works fine when a lot of people are coming IN & OUT.
When the workstation is idle IDLE for about 1 hour, my IF NOT
tc.qlocate(empID) would fail for all subsequent users and the user would
need to exit my application and go back in (not logoff the PC but only exit
pdox) and everything works fine again.

--
Tom Krieg

---------------
http://www.krieg.com.au
Please use the contact page to contact me via email


Reply With Quote
  #10  
Old   
Tom Krieg
 
Posts: n/a

Default Re: qLocate Fails on Firebird DB after 1 hour of Inactivity - 04-21-2008 , 12:14 AM



This sounds like the server is disconnecting from the Paradox session.
Have you updated your Firebird software?

Now, I trust you're not going to say that you're using the native BDE
Interbase SQL Link to access a Firebird database using a TCursor.
Because if you are then you are boldly walking into the cavern of a
vicious, fiery dragon without armour or a sword and not even your faith
in all things good will save you.

I can't stress enough that direct access to SQL server tables in Paradox
will cause grief. Tcursors are particularly prone to causing problems.
If you access a Firebird database using the native Interbase link well,
Firebird's had numerous releases and updates since the Interbase 6
code-base turned into Firebird 0.0.1 so something MUST have changed.

You will eventually confront the reasons why everyone says not to do it.

Gene De Guzman wrote:
Quote:
Hi All,

I have a timekeeping system that is connected thru a mapped drive to a
firebird DB.
Everything works fine when a lot of people are coming IN & OUT.
When the workstation is idle IDLE for about 1 hour, my IF NOT
tc.qlocate(empID) would fail for all subsequent users and the user would
need to exit my application and go back in (not logoff the PC but only exit
pdox) and everything works fine again.

--
Tom Krieg

---------------
http://www.krieg.com.au
Please use the contact page to contact me via email


Reply With Quote
Reply




Thread Tools
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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.