Auto-detection Page Size Access Violation
Posted: Wed Oct 26, 2011 8:44 pm
When I scan a page using Page size auto detection, an AccessViolationException occurs after the scanner completes scanning the page.
This happens with both Acquire and AcquireModal functions.
I've made sure that I have the most recent scanner drivers for the scanners I am using.
This happens with both the .NET 2.0 and the .NET 4.0 VintaSoftTwain dll
Choosing any other page size from the UI other than Auto-detection does not throw the exception.
Both scanners show IAutomaticBorderDetection and IAutoSize in the capabilities list
The exception is thrown by using the scanner UI to select Auto-detection for page size and also when setting the .PageAutoSize = PageAutoSize.Auto
Operating System: Windows 7 64-bit
Scanners: Canon DR-2050C and Canon DR-2510C
I tried using the DetectBorder function for each page scanned, but the page is not re-sized on the Canon DR-2510C, but it is on the Canon DR-2050C
Is there a way to either prevent the exception from occurring or to make the DetectBorder function work the same with both scanners?
Thanks,
Aaron
This happens with both Acquire and AcquireModal functions.
I've made sure that I have the most recent scanner drivers for the scanners I am using.
This happens with both the .NET 2.0 and the .NET 4.0 VintaSoftTwain dll
Choosing any other page size from the UI other than Auto-detection does not throw the exception.
Both scanners show IAutomaticBorderDetection and IAutoSize in the capabilities list
The exception is thrown by using the scanner UI to select Auto-detection for page size and also when setting the .PageAutoSize = PageAutoSize.Auto
Operating System: Windows 7 64-bit
Scanners: Canon DR-2050C and Canon DR-2510C
I tried using the DetectBorder function for each page scanned, but the page is not re-sized on the Canon DR-2510C, but it is on the Canon DR-2050C
Is there a way to either prevent the exception from occurring or to make the DetectBorder function work the same with both scanners?
Thanks,
Aaron