Logger.Filename is read-only

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

Moderator: Alex

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

Logger.Filename is read-only

Post 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.

thanks!

-Paul
Alex
Site Admin
Posts: 2305
Joined: Thu Jul 10, 2008 2:21 pm

Re: Logger.Filename is read-only

Post by Alex »

Hi Paul,

Please use this code:

Code: Select all

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