Hi all,
Delphi XE6, and testing a new service application. Getting an EOleSysError exception "CoInitialize has not been called" when trying to connect to a Jet database. I'm using TADOConnection.
Except... I am calling it. Logging shows that CoInitialize(nil) gets called before the exception occurs. I've tried putting it in all sorts of places including in the TService.Create method before anything else happens. Still get the exception.
It's doubly weird because I realised that other similarly structured service applications (Delphi XE6, Jet, ADO) I've written recently are working fine, and I haven't called CoInitialize in them at all.
Feels like something weird is going on, eg. I haven't included a magic unit in my uses clause or something.
Thanks for your help.
Delphi XE6, and testing a new service application. Getting an EOleSysError exception "CoInitialize has not been called" when trying to connect to a Jet database. I'm using TADOConnection.
Except... I am calling it. Logging shows that CoInitialize(nil) gets called before the exception occurs. I've tried putting it in all sorts of places including in the TService.Create method before anything else happens. Still get the exception.
It's doubly weird because I realised that other similarly structured service applications (Delphi XE6, Jet, ADO) I've written recently are working fine, and I haven't called CoInitialize in them at all.
Feels like something weird is going on, eg. I haven't included a magic unit in my uses clause or something.
Thanks for your help.