PDA

View Full Version : Unable to set the LeaksOptions at runtime


Marius2
21-Nov-2008, 02:05 PM
In program source i want to use the following:

CurrentEurekaLogOptions.ErrorsNumberToSave := Maxint;
if FindCmdLineSwitch('memcheck')
then CurrentEurekaLogOptions.LeaksOptions := [loCatchLeaks, loGroupsSonLeaks, loHideBorlandLeaks, loCatchLeaksExceptions]
else CurrentEurekaLogOptions.LeaksOptions := [];
CurrentEurekaLogOptions.ExceptionDialogType := edtEurekaLog;
CurrentEurekaLogOptions.OutputPath := ExtractFilePath(ParamStr(0)) + VersionRecord.FileVersion + '.Elf'

But i cannot set the LeaksOptions at runtime because it is readonly. Nothing big (already solved locally). Could you please make this option writeable in the next version?

Thank you,
Marius

admin
25-Nov-2008, 10:54 AM
Hi Marius2,

it's just in our TODO list! :)