Delphi and COM servers - FAQ

by Jan Verhoeven, 9 August 2002

Q1. "There are still active COM servers in your application".

When you use COM objects in your application, e.g. the Script Control, you probably have got the above message in some instances. How to avoid it?

A1. This is what you do:

  1. Select: Project - View Source
  2. add  ComServ  to the uses clause
  3. aftter the line: Application.Initialize;
  4. add the line   ComServer.UIInteractive := False;

That will solve your problem.