Subject Re: Re: Re: [IBO] ICS ERROR 335544726
Author GOVINDKRISHNA
>NO!!! The default IB_Session is created when the first IB_Connection is
>created. In order to AVOID the default ib_session from getting created at
>all, you must set down your own TIB_Session component as the -=first=-
>component created in the form or datamodule. You canNOT share a connection
>across threads. You must ensure that each instance of a thread has its
>own, self-contained database session "kit" - just as every mountaineer in
>an expedition has his own boots, crampons and water-bottle.

>Helen

Thanks,

I was writing single threaded applications till now so I generally ignored IB_Session so the default was being used.
Am just venturing into multithreaded database connections.

Just to make sure that I have not missed anything

If each thread is instantiating a datamodule.

Every datamodule should have

One Session object (Created First)
One Connection object (This is set as the default connection for the session object)
One or more transaction objects (using this connection object).
Recordsets using the appropriate transaction objects.

Is that right
thanks
GK