|Subject||RE: [firebird-support] Re: Multithread aplication with embedded server|
> The error I am getting is "Cannot attach to services manager"your app as a service?
> It only happens when I am running my app as a service. When it is
> running as a standard application it works properly.
you'd better tell us more about the architecture now....
you have a service application which uses the embedded server.. YES?
I suspect that your appplication running as a service will need to use the
TP stack ..
> The code I am using is:
> BackupService := TIBBackupService.Create(nil);
> with BackupService do
> ServerName := ConnectionData.ServerName;
> LoginPrompt := False;
> Active := True;
> Verbose := False;
> Options := [NonTransportable, IgnoreLimbo];
> DatabaseName := ConnectionData.DatabaseName;
> while not eof do
> Active := False;
> And the error is raised when the "Active := True" line is executed.
> The application is connected as SYSDBA to the database and all the
> other tasks work properly