PDA

View Full Version : Setting properties


Fredrik
15-Jan-2008, 08:10 AM
Hi

I have a server application consisting of multiple delphi projects and I want to set eureka options by using a include file in the projects that need logging but I have trouble mapping the options in the eureka dialog to the options i code.

What I want is no dialogs, no restart or termination after errors and log infinit numer of errors.

How do change these options through code? You have documented the events in an excelent way but I feel that the properties is lacking documentation.

Regards
/Fredrik

admin
15-Jan-2008, 11:14 AM
Hi, you can simply uses the following code:


// No dialog
CurrentEurekaLogOptions.ExceptionDialogType := edtNone;

// No terminate/restart button
CurrentEurekaLogOptions.TerminateBtnOperation := tbNone;
CurrentEurekaLogOptions.AutoCrashOperation := tbNone;

// Infinite logs.
CurrentEurekaLogOptions.ErrorsNumberToSave := MaxInt;