Subject | Re: [IBO] Records show at design time but not runtime |
---|---|
Author | mitch_landor |
Post date | 2006-03-13T12:32:52Z |
--- In IBObjects@yahoogroups.com, Helen Borrie <helebor@...> wrote:
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;
uses
Forms,
MainForm in 'MainForm.pas' {Form2},
dm02 in 'dm02.pas' {DataModule3: TDataModule};
{$R *.res}
begin
Application.Initialize;
Application.CreateForm(TDataModule3, DataModule3);
Application.CreateForm(TForm2, Form2);
Application.Run;
end.
>Thanks Helen.
> 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
>
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;
uses
Forms,
MainForm in 'MainForm.pas' {Form2},
dm02 in 'dm02.pas' {DataModule3: TDataModule};
{$R *.res}
begin
Application.Initialize;
Application.CreateForm(TDataModule3, DataModule3);
Application.CreateForm(TForm2, Form2);
Application.Run;
end.