Re: ADO in dll AV

From: Brian Bushay TeamB (BBushay_at_Nmpls.com)
Date: 12/24/03


Date: Tue, 23 Dec 2003 22:51:51 -0600


>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.
>

Are you calling CoInitialize in the Initialization section of the DLL? ADO is
uses COM and in a DLL you need to manage initializing COM

--
Brian Bushay (TeamB)
Bbushay@NMPLS.com


Relevant Pages

  • Re: Ado inside dll ?
    ... > Is it possible to use Ado component with dynamical creation inside ... > I try it and i get ActiveX error when i create component! ... In your DLL: ...
    (borland.public.delphi.database.ado)
  • Ado inside dll ?
    ... Is it possible to use Ado component with dynamical creation inside Dll? ... I try it and i get ActiveX error when i create component! ...
    (borland.public.delphi.database.ado)