Subject | Re: [IBO] Losing TIB_Connection whilst designing |
---|---|
Author | Lucas Franzen |
Post date | 2003-02-19T10:35:07Z |
David,
TIB_Connection is).
There are two properties that are interesting for you:
AllowDefaultConnection (I have it false)
AllowDefaultTransaction (I have it true)
I had this problem a long time ago and I could just handle it by using
the SessionProps component.
By the way:
I had a lot of problems with my D5 using ProjectGroups (ie having two
projects opened at the same time - since my main datamodule has the same
name (dm) in every project Delphi started to mess up everything. I don't
use project groups anymore (okay, I have to use them, since I can't
switch them off, but I don't add more than one project to it....)
Maybe BCB has a similar problem.
Hth
Luc.
>Add a TIB_SessionProps to your datamodule (or whereever the
> Hello
>
> Using BCBv5p2, Win2kp2, IBO4.2H, with a local database
>
> For a few months now, I have had a TIB_Connection in a datamodule
> with Connected=true. Other forms/datamodules used this connection to
> set their query/cursor,transaction IB_Connection property.
>
> However, during the past week the TIB_Connection periodically sets
> it's Connected property to false, resulting in all my
> transactions\querys\cursors losing their IB_Connection property.
>
> When running my application, the TIB_Connection will connect, but my
> transactions\querys\cursors will have a blank (not <default>)
> IB_Connection property which results in failure.
>
> Could I have changed a parameter somewhere to cause this? It's
> getting a bit tiring setting all my IB_Connection properties a dozen
> times every day.
TIB_Connection is).
There are two properties that are interesting for you:
AllowDefaultConnection (I have it false)
AllowDefaultTransaction (I have it true)
I had this problem a long time ago and I could just handle it by using
the SessionProps component.
By the way:
I had a lot of problems with my D5 using ProjectGroups (ie having two
projects opened at the same time - since my main datamodule has the same
name (dm) in every project Delphi started to mess up everything. I don't
use project groups anymore (okay, I have to use them, since I can't
switch them off, but I don't add more than one project to it....)
Maybe BCB has a similar problem.
Hth
Luc.