SQLExpress - Xb2.NET     ot4xb  
xb2net
timeout files dbf into Session
Thread Starter: class srl (Carlo Cariglia) Started: 4/2/2008 10:43 AM UTC
Replies: 1
timeout files dbf into Session

Hello,

if I store a dbf connection into xbSession, after a few seconds the connection stop to work because file in area is closed.

It seems that xb2net has a timeout, is possible to increase it?

thanks for your help

Carlo Cariglia



 

Re: timeout files dbf into Session
"class srl (Carlo Cariglia)" <c.cariglia@class-it.com> wrote in news:17ad6ed1$53b6cd21$cc8e@news.xbwin.com:

if I store a dbf connection into xbSession, after a few seconds the connection stop to work because file in area is closed.
It seems that xb2net has a timeout, is possible to increase it?

The solution is not to increase the timeout period. DBF files are automatically closed when a thread terminates. The code that does this is found in WEBSERVE.PRG:

soServer:atEnd := {||DbCloseAll()}

Best regards,
Boris Borzic
-- news://news.Xb2.NET
http://www.Xb2.NET
http://www.SQLExpress.net
industrial strength Xbase++ development tools