The application calls the OnClose event for the main form - but then I do not know what happens. The application form (there is only one) disappears, but the process does not quit.
This is basically the code. Very much the same for the REstore service.
Code: Select all
with IBCBackupService1 do
begin
Options := [];
if chkConvertExtTables.checked then
Options := options + [boConvertExtTables];
if chkIgnoreChecksums.checked then
Options := options + [boIgnoreChecksums];
if chkIgnoreLimbo.checked then
Options := options + [boIgnoreLimbo];
if chkMetadataOnly.checked then
Options := options + [boMetadataOnly];
if chkNoGarbageCollection.checked then
Options := options + [boNoGarbageCollection];
if chkNonTransportable.checked then
Options := options + [boNonTransportable];
if chkOldMetadataDesc.checked then
Options := options + [boOldMetadataDesc];
Active := True;
try
Verbose := True;
Database := txtSourceDB.Text;
BackupFile.text := stBackup;
ServiceStart;
while not Eof do
begin
Msg(GetNextLine); //display in memo component
application.processmessages;
end;
finally
Detach;
Active := False;
end;I am thinking that perhaps there should be some way to stop the service. There is a ServiceStart, but no ServiceStop.
Any suggestions?