Subject Re: [IBO] Records show at design time but not runtime
Author mitch_landor
--- In, Helen Borrie <helebor@...> wrote:
> At 11:10 PM 13/03/2006, you wrote:
> >Yes I have objects named ib_connection1 and ib_query1 and they work OK
> >at design time. (I have the simplest setup for testing, 1 form, 1
> >grid, 1 datamodule).
> >
> >The properties of ib_query1 are:
> >ib_connection = ib_connection1
> >ib_transaction = <default>
> Oh - did you remember to open the dpr file and move the datamodule up
> ahead of the main form in the create sequence? Otherwise you'll have
> data-aware controls that are trying to link to data access objects
> that don't exist yet...
> Helen

Thanks Helen.

I made the adjustment and here is the new source in the dpr file. I
still get an error:

'Access violation at address 004A96B4 in module 'TestProj2.exe'. Read
of address 00000054'. Process TestProj2.exe (3372)

program TestProj2;

MainForm in 'MainForm.pas' {Form2},
dm02 in 'dm02.pas' {DataModule3: TDataModule};

{$R *.res}

Application.CreateForm(TDataModule3, DataModule3);
Application.CreateForm(TForm2, Form2);