There are several ways of doing it.
- If you are going to use visual dialogs - you can disable "Ask user for send consent" option, and enable "Default choice: send report" option;
- If you do not want any visual dialog at all - set "Dialog type" to "(none)". This will disable dialog for all exceptions. You can also do this in runtime:
CurrentEurekaLogOptions.ExceptionDialogType := edtNone(unitsEModulesandETypes);- Alternatively, you can use exception filters. Add new filter, select exception type and set handler to EurekaLog and set dialog type to "(none)". This will disable dialog for certain exception types. Note, that is you'll set handler to "none" or "RTL" - the bug report will not be sent;
- You can also use the
OnExceptionActionevent. You can assign your own custom event handler, where you should pay attention toatShowingExceptionInfoandatShowedExceptionInfoaction types (AEurekaActionargument). To block error dialog you setAExecute := FalseforatShowingExceptionInfoandAExecute := TrueforatShowedExceptionInfo.
- If you application consists only of one main exe file (or one standalone DLL) and other code does not use EurekaLog - then your are done;
- If your application consists of several DLLs/BPLs - then answer may vary, depending on how you are using them. You may need to repeat these configuration steps for all or some of your DLLs.
See also: