Re: Dll Project with ADO
yannis wrote:
Try calling CoInitialize before create the TQReport and CoUninitialize
after the Result := 0; line of code.
Regards
Yannis.
thanks for your help !
but I don't know the meanning of 'CoInitialize' and 'CoUninitialize' .
Could you write a simple example .
Thanks !
.
Relevant Pages
- Re: Dll Project with ADO
... lzq was thinking very hard: ... but I don't know the meanning of 'CoInitialize' and 'CoUninitialize'. ... (borland.public.delphi.database.ado) - CoUninitialize() and CComPtr<> object lifetimes
... I have tracked down a bug involving object lifetimes to a quirk in CComPtr<> ... help that CoInitialize() is being called somewhere in the app framework. ... CoUninitialize(); ... What is going on with this DLL? ... (microsoft.public.vc.atl) - Re: Windows Service & ADO problem
... As ADO is based on COM it needs to call coInitialize to initialize its ... Well, actually Microsoft recommends to ... if you don't call coUninitialize there is a lot of things not ... It also may be a problem with MDAC or COM corruption/bug. ... (borland.public.delphi.database.ado) - Re: Calling Coinitialize
... > Delphi 5 C/S compiled programs and use ADO. ... > the dll's doesn't seem to help) and then it will immediately crash ... not calling coInitialize and coUninitialize at all. ... (borland.public.delphi.database.ado) - Re: Question Error Access violation in CoUninitialize() call
... Success = false; ... CoInitialize may fail and if it does, ... CoUninitialize. ... If you decide you should be calling CoInitialize, ... (microsoft.public.win32.programmer.ole) |
|