I got the same error a while ago when I migrated an Delphi16 app to Delphi 4.
Calling OleInitialize in the initialization section, and OLEUnitialize in the
finalization section solved it:
initialization
OleInitialize(nil);
finalization
OLEUninitialize;
John Mason
Steven Wild wrote:
> I have imported an activeX component and created a simple test
> application to see that it works. It does.
>
> However, when I then take that same component and add it to an
> existing application I get the following error.
> "Exception EOleSysError ..............
> Colnitialize has not been called."
>
> I can not find any reference to "Colnitialize", nor do I understand
> why it works in one context but not the other.
>
> Any help would really be appreciated.
>
> Steven
> Steven Wild
> Director
> Wild Software Ltd
> P O Box 33-216
> Christchurch, NZ
> Ph & Fax 64 3 377-0495
> _______________________
>
> Chreos Business Systems
> _______________________
> ---------------------------------------------------------------------------
> New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
> Website: http://www.delphi.org.nz
--
John Mason
Kingston Morrison
---------------------------------------------------------------------------
New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
Website: http://www.delphi.org.nz