Page 1 of 1

Logger.Filename is read-only

Posted: Thu Feb 24, 2011 11:52 am
by pwsmietan
I'm trying to assign a custom filename for debug information and I get an error saying Twain.DeviceManagerLogger.Filename cannot be assigned to (read-only). It used to work in previous versions. I am compiling under VS 2010 with the .NET 4 libraries.



Re: Logger.Filename is read-only

Posted: Sun Feb 27, 2011 5:29 pm
by Alex
Hi Paul,

Please use this code:

Code: Select all

deviceManager.Logger = new DeviceManagerLogger(@"d:\vstwain.log", true);
Best regards, Alexander