Subject Re: [IBO] strange access violation with TIB_Session and TIB_RPL_Meta
Author blescouet
Hi,

Sorry for being long to answer... It's yet an old thread, but let
continue it !

--- In IBObjects@yahoogroups.com, "Jason Wharton" <jwharton@i...>
wrote:
> This sounds like a problem with the destruction phase of the
components.

During the construction phase I think : the AV raises while the unit
is opened, not closed.

> If you send me a simple sample app with instructions on how to get
this
> problem to reproduce I will add it to my bugs folder and review it.
>
It's quite easy to reproduce : create a new datamodule, put on it a
TIB_Session, a TIB_Connexion and then a TIB_RPL_Meta... Bingo !

It's a little irritating while developping my app, so I made a
workaround : I've overriden the Datamodule's consructor to create
manually the TIB_Session :

constructor TMyModule.Create(AOwner : TComponent);
begin
FSession := TIB_Session.Create(Self);
inherited;
[...]
end;

And all is working fine. Can we conclude that the origin of the
problem is in a Designtime package ?

B.L.