This project has moved. For the latest updates, please go here.

Fault with Release?

Feb 13, 2015 at 12:23 AM
Have just upgraded from and now the following 2010 VB.NET code fails -
  If (_TWAIN.IsCapSupported(TwCap.Brightness) And TwQC.Set) <> 0 Then
    _TWAIN.SetCap(TwCap.Brightness, 0.0F) 'Allowed Values: -1000.0F to +1000.0F; Default Value: 0.0F;
  End If
Error Reported:
Unrecognized MSG DG DAT combination.
at Saraff.Twain.Twain32.IsCapSupported(TwCap capability)

Anyone else finding the same issue?

Feb 13, 2015 at 7:23 PM
Hello, Shanearn.
See Saraff.Twain.Sample2. And see TWAIN Specification .
Feb 13, 2015 at 9:21 PM
Edited Feb 13, 2015 at 9:23 PM
Hello Saraff,

Thank-you for your quick reply. Unfortunately I must continue to advise that an error exists with

The code fragment works perfectly with and has been working daily on 3 different scanners (on 3 different computers) for the past couple of months. I simply updated to the new release then re-compiled and it then failed on all 3 systems!

Reverting back to and re-compiling fixed the problem.

Scanners in use:
EPSON Perfection V30/V300
TW-Brother MFC-J870DW LAN
Canon LiDE220

I see nothing in the Saraff.Twain.Sample2 or the TWAIN Specification which explains why it would fail after upgrading.

Feb 14, 2015 at 9:34 AM
Hello, Shanearn.
Your problem is not related with the update to version Try download and run Saraff.Twain.NET Samples (use compiled files, they use version Your problem is most likely due to incorrect sequence of method calls (OpenDSM -> OpenDataSource -> SetCap)
Feb 24, 2015 at 9:22 PM
Hello, Shanearn.
Try download latest source code.
Marked as answer by SARAFF on 3/2/2015 at 11:10 AM
Mar 4, 2015 at 7:59 PM
Hello, Shanearn.
This problem fixed in Saraff.Twain.NET Release.
Mar 5, 2015 at 9:21 PM
Hello Saraff,
Thank you for the update information. I am on holidays for the next 4 weeks but will look at the new version when I return.
Shane Arnfield