Logger.Filename is read-only

Questions, comments and suggestions concerning VintaSoft Twain .NET SDK.

Moderator: Alex

Post Reply
Posts: 5
Joined: Wed Aug 26, 2009 12:46 am

Logger.Filename is read-only

Post by pwsmietan » Thu Feb 24, 2011 11:52 am

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.



Site Admin
Posts: 1625
Joined: Thu Jul 10, 2008 2:21 pm

Re: Logger.Filename is read-only

Post by Alex » Sun Feb 27, 2011 5:29 pm

Hi Paul,

Please use this code:

Code: Select all

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

Post Reply