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 

Problems with windows services...

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi (General)
View previous topic :: View next topic  
Author Message
Ramsees
Guest





PostPosted: Tue Dec 26, 2006 9:57 pm    Post subject: Problems with windows services... Reply with quote



I've made a service with a timer, the only thing it does is write into
a log file de date and time every second, All works find until I deside
to connect to a database, extract the value of a field and write it in
the log file (also in the timer), It simple doens't work (I make the
same in a normal application w/o problems), I don't know why, anyone
here have made a service that ocnnects to a database and extract data
succesfull?

The database is Firebird and the componets to access it are FibPlus.

Thx.
Back to top
Alex Sporik
Guest





PostPosted: Mon Jan 08, 2007 9:10 am    Post subject: Re: Problems with windows services... Reply with quote



Hello Ramsees,

I found recently that Timer component simply doe not work in Windows
Services. The same story with SetTimer function. I recommend you to
create time calculation mechanism using Sleep/SleepEx functions. I can
even share some my code if you want.

Alex
Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi (General) 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.