 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Ramsees Guest
|
Posted: Tue Dec 26, 2006 9:57 pm Post subject: Problems with windows services... |
|
|
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
|
Posted: Mon Jan 08, 2007 9:10 am Post subject: Re: Problems with windows services... |
|
|
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 |
|
 |
Powered by phpBB © 2001, 2006 phpBB Group .
|