Subject | Re: [firebird-support] about threads |
---|---|
Author | Helen Borrie |
Post date | 2008-03-16T00:21:50Z |
At 01:54 AM 16/03/2008, you wrote:
Then at runtime just create and destroy the datamodule whenever you need to use it.
Please don't post HTML messages in the lists.
^ heLen
>Thank you for answering me !Yes. Exactly.
>
>This isn't very time consuming ? I mean I should create TIBDatabase and TIBTransaction in runtime in each thread ? And then destroy it ?
>Any other tip ?Create a dedicated datamodule containing everything you need for the thread, including of course any query objects and other used objects. In the DPR source, remove the Application.Create statement for this datamodule.
Then at runtime just create and destroy the datamodule whenever you need to use it.
Please don't post HTML messages in the lists.
^ heLen