Subject | Access violation with IB_Connection pointer and package |
---|---|
Author | Damian Dowling |
Post date | 2001-08-23T12:13:49Z |
Hi
I am getting the following error when i pass a IB_Connection pointer to a
package and try to use it:
Access violation at address 4005C40C in module 'VCL50.BPL'. Read
of address FFFFFFFF.
Here is what i have:
1. MDIParent Form with IB_Connection component.
2. Package statically linked to Main program. Package contains a MDIChild
Form with IB_Transaction, IB_DataSource, IB_Query and a Grid.
3. I create the MDIChild Form and call a function to setup the child
passing IB_Connection pointer, Setup function code as follows:
Transaction->AddConnection(Control);
User_Query->DatabaseName = Control->DatabaseName;
User_Query->IB_Connection = Control;
User_Query->Open();
If the table contains data the error happens before the data is displayed,
Oking the error and clicking on the Grid will display the data and the
error will appear. From what i can tell the error is also kicked off when
the Grid receives focus.
I have just tested it without the Grid and used an Edit control and it
worked OK all except for the Announce Focus bit (there was still something
wrong). I have also tried including into the package the MDIParent and its
IB_Connection and set it up at design time, still no go (works at design
time though).
There seems to be a problem here with IBO and packages, which i need fixed
- i am already lookinig at 10MBs of Packages (containing Forms) for an
Application (and there is alot more to come), i cannot put all that into
one EXE.
I am using BCB Pro 5 IBO 4.2.Eb.
Hope some one can help.
Thanks
Damian Dowling
IT Manager
Pallas Foods Ltd
Phone: + 353 69 20200
Fax: + 353 69 20201
Email: it-manager@...
I am getting the following error when i pass a IB_Connection pointer to a
package and try to use it:
Access violation at address 4005C40C in module 'VCL50.BPL'. Read
of address FFFFFFFF.
Here is what i have:
1. MDIParent Form with IB_Connection component.
2. Package statically linked to Main program. Package contains a MDIChild
Form with IB_Transaction, IB_DataSource, IB_Query and a Grid.
3. I create the MDIChild Form and call a function to setup the child
passing IB_Connection pointer, Setup function code as follows:
Transaction->AddConnection(Control);
User_Query->DatabaseName = Control->DatabaseName;
User_Query->IB_Connection = Control;
User_Query->Open();
If the table contains data the error happens before the data is displayed,
Oking the error and clicking on the Grid will display the data and the
error will appear. From what i can tell the error is also kicked off when
the Grid receives focus.
I have just tested it without the Grid and used an Edit control and it
worked OK all except for the Announce Focus bit (there was still something
wrong). I have also tried including into the package the MDIParent and its
IB_Connection and set it up at design time, still no go (works at design
time though).
There seems to be a problem here with IBO and packages, which i need fixed
- i am already lookinig at 10MBs of Packages (containing Forms) for an
Application (and there is alot more to come), i cannot put all that into
one EXE.
I am using BCB Pro 5 IBO 4.2.Eb.
Hope some one can help.
Thanks
Damian Dowling
IT Manager
Pallas Foods Ltd
Phone: + 353 69 20200
Fax: + 353 69 20201
Email: it-manager@...