Re: [Lazarus] Having trouble getting fptimer to work in a Daemon.

2010-02-19 Thread Joshua Lim
Hi Michael, thanks, is there a work around solution to simulating a trigger in a Lazdaemon? Rgds, Joshua From: Michael Van Canneyt The standard driver for fpTimer is not suitable for use in a daemon application, as the timer events are only triggered in the main thread, and each daemon runs

Re: [Lazarus] Having trouble getting fptimer to work in a Daemon.

2010-02-19 Thread Adrian Veith
the problem is, that a normal thread does not have a message queue. You can create a second thread, which calls some method in a periodic cycle and sleeps in between. But you must take care, that this thread is synchronized to your daemon thread. Adrian. Am 19.02.2010 16:19, schrieb Joshua Lim:

Re: [Lazarus] How to use ExceptProc and application.CaptureExceptions

2010-02-19 Thread Bogusław Brandys
Flávio Etrusco pisze: 2010/2/17 Bogusław Brandys bran...@o2.pl: Alexander Grau pisze: I'm answering my own question since I got it solved now by setting an ExceptionHandler using Application.AddOnExceptionHandler: application.AddOnExceptionHandler(@MyExceptionHandler); This will capture

Re: [Lazarus] Access to PostgreSQL

2010-02-19 Thread Marc Weustink
Pino Zollo wrote: Hi to the list. I am experimenting the features of lazarus, so I made a small program for reading from a PostgreSQL database. It happens the following problem: Fields of type text are shown as (blob) True, iirc strings longer than 255 chars are teruned as blob. Fields