wrockleberry
Programmer
I am trying to create a DLL that can be called to update a SQL server. I am able to pass the correct parameters to the routine, but when I get to the first line refencing either the ADO connection, or the ADO dataset, even just to set the command text The program stops with the message:
Project raised exception class EAccessViolation with message 'Access violation at address 0024FF5A in module xx.dll'. Read of address 00000064.
In the IDE I am able to open and close the connection as well as the dataset, but when the DLL is loaded from another program and called the access violation happens. I have commented out all of the references to the datatables and the dll runs fine.
I created a datamodle in the LIBRARY module to add the ADOconnection, the ADOdataset, and the delphi datasource, the datamodule is referenced in the uses clause of the module that contains the ADO statements.
Any thoughts on what might be happening would be appreciated.
Thanks
Project raised exception class EAccessViolation with message 'Access violation at address 0024FF5A in module xx.dll'. Read of address 00000064.
In the IDE I am able to open and close the connection as well as the dataset, but when the DLL is loaded from another program and called the access violation happens. I have commented out all of the references to the datatables and the dll runs fine.
I created a datamodle in the LIBRARY module to add the ADOconnection, the ADOdataset, and the delphi datasource, the datamodule is referenced in the uses clause of the module that contains the ADO statements.
Any thoughts on what might be happening would be appreciated.
Thanks