On Wed, 17 Feb 2010, Michael Schnell wrote:
On 02/16/2010 05:38 PM, Joost van der Sluis wrote:
And it is because I want to have a 'global' logging system available.
But the application
has to implement it.
Of course the logging functions would need to be thread-safe !
IMHO it would be nice if TCustomapplication would have a hook for the
event-queue, so that different event queue implementations (like
TApplication <using the GUI system's event queue> and the (upcoming)
TNoGUIApplication <implementing an event queue in FPC code> ) can be
done as a plugin.
I don't see a point in an event queue, since TCustomApplication is also
meant for non-event-driven (or queueing) applications; What's more event
queues can take wildly different forms in terms of implementation, so it's
hard to create a catch-all hook for that.
Michael.
_______________________________________________
fpc-devel maillist - [email protected]
http://lists.freepascal.org/mailman/listinfo/fpc-devel