Setup screen hanging application
Posted: Fri Aug 03, 2018 2:01 pm
I have a WPF application from which I'm trying to invoke the Twain setup configuration dialog. I'm using code like:
This puts the scanner's dialog up OK. However, when I close the dialog, my UI is no longer responsive. My suspicion is that it's connected with the window handle from the WPF application.
Scanning itself is working OK; it just seems to be the setup dialog.
If it helps, the scanner is a Fujitsu, coming up as PaperStream IP fi-6670dj, and I'm using GDPicture 14.0.0.60.
Any suggestions welcome.
Code: Select all
var handle = new System.Windows.Interop.WindowInteropHelper(this);
using (var picture = new GdPicture14.GdPictureImaging())
{
picture.TwainOpenDefaultSource(handle.Handle);
picture.TwainShowSetupDialogSource(handle.Handle);
picture.TwainCloseSource();
}
Scanning itself is working OK; it just seems to be the setup dialog.
If it helps, the scanner is a Fujitsu, coming up as PaperStream IP fi-6670dj, and I'm using GDPicture 14.0.0.60.
Any suggestions welcome.