views:

106

answers:

0

I have a WPF application that works on XP and usually(?) works on Windows 7. The twain library is raising a Win32Exception when I try to enable the twain GUI. On-screen, I see the GUI come up and start to give images (this is a USB 2820 video, for what that's worth), but it quickly crashes.

The exception's message is that it "Cannot create a file when that file already exists". I've been trying to figure out what file is causing the problem, but that information doesn't seem to be in the exception. I had been thinking it might be a driver problem (since it seems to vary from machine to machine), but I'm not sure of anything right now.

The customer is pushing for me to use a different library (right now I'm using TwainDotNet) but I'm reluctant to put in a lot of effort to wrapping a different library for WPF usage until I understand what's the problem and why it sometimes works, sometimes fails.

Anyone have any ideas? This wasn't how I envisaged spending the Christmas to New Years break!

Thanks!