ADO in dll AV
From: Daniel Lemire (NoSpam_dlemire_at_b2b2c.ca)
Date: 12/23/03
- Next message: intermedia International Inc: "Re: Problem connection to ASA8 database"
- Previous message: Eugene V. Goldberg: "Trouble with Key.Columns.Count in Delphi 5"
- Next in thread: Brian Bushay TeamB: "Re: ADO in dll AV"
- Reply: Brian Bushay TeamB: "Re: ADO in dll AV"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 23 Dec 2003 13:13:48 -0700
Hi there,
this has probably been taked about before but couldn't find an answer.
I have a DLL that exports one function. In this function I have the following code:
// Create the datamodule
DM_Main := TDM_Main.Create(Nil);
// Print it's report
Result := DM_Main.PrintReport;
// Free the datamodule
DM_Main.Free;
When the DataModule (DM_Main) has no Ado component on it, it works fine. But when I add a TAdoConnection object on it, I get an AV when calling the exported function.
I added ShareMem in the uses of all my units in case it was a string problem but that wasn't the case.
I have Delphi 6 enterprise, update pack 2 installed.
Thanks
Daniel
- Next message: intermedia International Inc: "Re: Problem connection to ASA8 database"
- Previous message: Eugene V. Goldberg: "Trouble with Key.Columns.Count in Delphi 5"
- Next in thread: Brian Bushay TeamB: "Re: ADO in dll AV"
- Reply: Brian Bushay TeamB: "Re: ADO in dll AV"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|