I used CodeSite to help debug a problem, but now I cannot seem to get it disabled in the app. The LiveViewer starts up even when I start my Delphi XE app outside of the IDE.
I have stopped the dispatcher manually and set the project for "Release" instead of "Debug", and I have the following code in my project file:
uses
Forms,
CodeSiteLogging,
.
.
.
Application.Initialize;
{$IFDEF DEBUG}
CodeSite.Enabled := True;
CodeSite.Clear;
{$ELSE}
CodeSite.Enabled := False;
{$ENDIF}
Application.MainFormOnTaskbar := False;
Application.Title := 'g3';
Application.CreateForm(Tfrmg3Main, frmg3Main);
if not (frmg3Main.DoRunApplication) then
begin
application.terminate;
exit;
end;
Application.CreateForm(TDM1, DM1);
Application.Run;
// end of code maintained by Delphi
end
I would like to keep the Dispatcher from starting and keep the Viewer from appearing. What am I missing?
