BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Re: Socket Server refuse me after standing ten minutes!

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Databases (Multi-Tier)
View previous topic :: View next topic  
Author Message
Manuel Parma
Guest





PostPosted: Mon Jul 21, 2003 5:24 am    Post subject: Re: Socket Server refuse me after standing ten minutes! Reply with quote



Wich socketserver do you use?
Trey with my socket server and tell me if it work

http://codecentral.borland.com/codecentral/ccweb.exe/listing?id=18265

And uncheck Show Host Name option in connection menu

Manuel


"hydonlee" <hydonlee (AT) hotmail (DOT) com> wrote

Quote:

I have a three-tier app based Socket Server.
But when I run the App and then i go to have lunch, and about ten minutes
later come back.

Re-Opration my opened and Runing App, it Rasie a Error like this :
windows socket error:(10054),on API 'recv'

and i have to ReStart my App to work.

Check my socket Server property:
inacive timeout: 0

thanks for your idea!




Back to top
hydonlee
Guest





PostPosted: Mon Jul 21, 2003 6:25 am    Post subject: Re: Socket Server refuse me after standing ten minutes! Reply with quote




thanks for your reply.

I use borland Socket Server for delphi 4.04

File Name: SCKTSRVR.EXE
commont: Borland Socket Server
File Version: 5.0.5.62
CopyRights: Copyright c 1997-1999 Inprise Corporation
Production Version : 5.0
Production Name: Borland Socket Server

"Manuel Parma" <mparma (AT) usa (DOT) net> wrote:
Quote:
Wich socketserver do you use?
Trey with my socket server and tell me if it work

http://codecentral.borland.com/codecentral/ccweb.exe/listing?id=18265

And uncheck Show Host Name option in connection menu

Manuel


Back to top
Jaroslav Demin
Guest





PostPosted: Mon Jul 21, 2003 10:35 am    Post subject: Re: Socket Server refuse me after standing ten minutes! Reply with quote



May be my story can help...
I have project writeen with Delhi 4. I tried to migrate it to Delphi 6.
Difficulties began with Treading Model = tmApartment because Delphi 6 - is
really multi-threaded. So, get a look at my code:

procedure TRemoteDataModule1.RemoteDataModuleCreate(Sender: TObject);
begin
// In delphi 6 I can't access to global variables
// from thread
// I must access it in safe mode
Usr:=FmMain.LVUsers.Items.Add; // it's wrong!!!
Usr.Caption:='Not login information';
end;

That is why my server App stops for 10 minutes
May be you are in the same sutiation

Thank you

"hydonlee" <hydonlee (AT) hotmail (DOT) com> wrote

Quote:

thanks for your reply.

I use borland Socket Server for delphi 4.04

File Name: SCKTSRVR.EXE
commont: Borland Socket Server
File Version: 5.0.5.62
CopyRights: Copyright c 1997-1999 Inprise Corporation
Production Version : 5.0
Production Name: Borland Socket Server

"Manuel Parma" <mparma (AT) usa (DOT) net> wrote:
Wich socketserver do you use?
Trey with my socket server and tell me if it work

http://codecentral.borland.com/codecentral/ccweb.exe/listing?id=18265

And uncheck Show Host Name option in connection menu

Manuel




Back to top
hydonlee
Guest





PostPosted: Tue Jul 22, 2003 5:00 am    Post subject: Re: Socket Server refuse me after standing ten minutes! Reply with quote


thanks Jaroslav Demin.

My Applicatin is writed with delphi4 too. and now I have migate it to delphi 5.
and Treading Model use tmSigle.
like this :

initialization
TComponentFactory.Create(ComServer,TClass1,
Class_Class1,ciMultiInstance,tmSingle);


"Jaroslav Demin" <dejar (AT) mail (DOT) ru> wrote:
Quote:
May be my story can help...
I have project writeen with Delhi 4. I tried to migrate it to Delphi 6.
Difficulties began with Treading Model = tmApartment because Delphi 6 - is
really multi-threaded. So, get a look at my code:

procedure TRemoteDataModule1.RemoteDataModuleCreate(Sender: TObject);
begin
// In delphi 6 I can't access to global variables
// from thread
// I must access it in safe mode
Usr:=FmMain.LVUsers.Items.Add; // it's wrong!!!
Usr.Caption:='Not login information';
end;

That is why my server App stops for 10 minutes
May be you are in the same sutiation



Back to top
Manuel Parma
Guest





PostPosted: Wed Jul 23, 2003 2:08 am    Post subject: Re: Socket Server refuse me after standing ten minutes! Reply with quote

I have a version fixed for delphi 4
write me in private for get your copy

Manuel


"hydonlee" <hydonlee (AT) hotmail (DOT) com> wrote

Quote:

thanks for your reply.

I use borland Socket Server for delphi 4.04

File Name: SCKTSRVR.EXE
commont: Borland Socket Server
File Version: 5.0.5.62
CopyRights: Copyright c 1997-1999 Inprise Corporation
Production Version : 5.0
Production Name: Borland Socket Server

"Manuel Parma" <mparma (AT) usa (DOT) net> wrote:
Wich socketserver do you use?
Trey with my socket server and tell me if it work

http://codecentral.borland.com/codecentral/ccweb.exe/listing?id=18265

And uncheck Show Host Name option in connection menu

Manuel




Back to top
Russ Holcomb
Guest





PostPosted: Wed Jul 23, 2003 8:21 pm    Post subject: Re: Socket Server refuse me after standing ten minutes! Reply with quote

Every 20 seconds or so I call a heartbeat function to keep the connection
alive.

Russ

"hydonlee" <hydonlee (AT) hotmail (DOT) com> wrote

Quote:

I have a three-tier app based Socket Server.
But when I run the App and then i go to have lunch, and about ten minutes
later come back.

Re-Opration my opened and Runing App, it Rasie a Error like this :
windows socket error:(10054),on API 'recv'

and i have to ReStart my App to work.

Check my socket Server property:
inacive timeout: 0

thanks for your idea!




Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Databases (Multi-Tier) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.