Page 1 of 1

Debugging options?

Posted: Tue May 11, 2010 5:32 pm
by Peleus
Hello,

Our scanning application is crashing on the VSTwain1.Acquire(); function in 32-bit Windows 7. The scanner is a Xerox DocuMate 262. I am compiling the version 6 library.

Everything functions on Windows XP with that scanner. I have also scanned in 64-bit Windows 7 using a different scanner.

I'm now at a loss as to how to debug this problem. Does the VintaSoftTwain.NET library have a debugging log file I can enable?

Code: Select all

                    if (debug)
                        MessageBox.Show("Acquiring...");
                    try
                    {
                        VSTwain1.Acquire();
                    }
                    catch (Exception em)
                    {
                        if (debug)
                            MessageBox.Show(em.ToString());
                    }
                    if (debug)
                        MessageBox.Show("finished");
I see the first MessageBox but not the second. No excepetion is thrown either. The program just crashes. I get the following errors in Windows event viewer:

Code: Select all

Faulting application name: ebillscan.exe, version: 1.0.3783.14170, time stamp: 0x4be96114
Faulting module name: KERNEL32.dll, version: 6.1.7600.16481, time stamp: 0x4b1e3897
Exception code: 0xc00000fd
Fault offset: 0x0004f1f4
Faulting process id: 0x1650
Faulting application start time: 0x01caf111eb57121e
Faulting application path: C:\ebillscan\ebillscan.exe
Faulting module path: C:\Windows\system32\KERNEL32.dll
Report Id: 3071847e-5d05-11df-a0ec-a4badbe64f0b

Code: Select all

Fault bucket , type 0
Event Name: APPCRASH
Response: Not available
Cab Id: 0

Problem signature:
P1: ebillscan.exe
P2: 1.0.3783.14170
P3: 4be96114
P4: KERNEL32.dll
P5: 6.1.7600.16481
P6: 4b1e3897
P7: c00000fd
P8: 0004f1f4
P9: 
P10: 

Attached files:
C:\Users\username\AppData\Local\Temp\WER5717.tmp.WERInternalMetadata.xml

These files may be available here:
C:\Users\username\AppData\Local\Microsoft\Windows\WER\ReportArchive\AppCrash_ebillscan.exe_92ffddf1df9c13c67ba52bfe47de3a3065645af7_12f95c55

Analysis symbol: 
Rechecking for solution: 0
Report Id: 3071847e-5d05-11df-a0ec-a4badbe64f0b
Report Status: 1
Thanks!

Ryan

Re: Debugging options?

Posted: Tue May 11, 2010 7:54 pm
by Alex
Hello Ryan,

Yes, VintaSoftTwain.NET SDK has ability to create log-file.

Please do the following steps:
  • Set the IsLoggingEnabled property to True before the StartDevice method.
  • Set the path to log-file with the LogFilePath property if path "c:\vstwain.log" is not accessible by your application.
  • Run your application.
  • Send us a log-file and detailed description of the problem.
Best regards, Alexander

Re: Debugging options?

Posted: Thu May 13, 2010 10:33 pm
by Peleus
Hi Alex,

Here's the log file:

Code: Select all

5/13/2010 2:33:01 PM ODS1
5/13/2010 2:33:01 PM ODS3 3
5/13/2010 2:33:01 PM ODS4 140
5/13/2010 2:33:02 PM ODS5 0
5/13/2010 2:33:02 PM ODS6 xerox documate 262
5/13/2010 2:33:02 PM 6.0.17.3
5/13/2010 2:33:02 PM ODS7 False
5/13/2010 2:33:02 PM PTW1 msg=0x1c (WM_ACTIVATEAPP) hwnd=0xc03dc wparam=0x1 lparam=0x480 result=0x0
5/13/2010 2:33:02 PM PTW90-5
5/13/2010 2:33:03 PM SetCap(257,5,4,2)
5/13/2010 2:33:03 PM SetCap result = 0
5/13/2010 2:33:03 PM SetCap(258,5,4,0)
5/13/2010 2:33:03 PM SetCap result = 0
5/13/2010 2:33:03 PM SetCap(4376,5,7,200)
5/13/2010 2:33:03 PM SetCap result = 0
5/13/2010 2:33:03 PM SetCap(4377,5,7,200)
5/13/2010 2:33:03 PM SetCap result = 0
5/13/2010 2:33:03 PM SetCap(1,5,1,-1)
5/13/2010 2:33:03 PM SetCap result = 0
5/13/2010 2:33:03 PM SetCap(4386,5,4,3)
5/13/2010 2:33:03 PM SetCap result = 0
5/13/2010 2:33:03 PM SetCap(4115,5,6,1)
5/13/2010 2:33:03 PM SetCap result = 0
5/13/2010 2:33:03 PM SetCap(4103,5,6,1)
5/13/2010 2:33:03 PM SetCap result = 0
5/13/2010 2:33:03 PM SetCap(4098,5,6,1)
5/13/2010 2:33:03 PM SetCap result = 0
5/13/2010 2:33:03 PM PTW1 msg=0x1c (WM_ACTIVATEAPP) hwnd=0xc03dc wparam=0x1 lparam=0x68c result=0x0
5/13/2010 2:33:03 PM PTW90-5
5/13/2010 2:33:04 PM ACQ1 False False
5/13/2010 2:33:04 PM ACQ2
5/13/2010 2:33:04 PM ACQ3
5/13/2010 2:33:04 PM ACQ5
5/13/2010 2:33:04 PM ACQ6
5/13/2010 2:33:04 PM ACQ7
5/13/2010 2:33:04 PM EDS3 False False
5/13/2010 2:33:04 PM EDS5 0
5/13/2010 2:33:04 PM ACQ8
5/13/2010 2:33:04 PM ACQ9
5/13/2010 2:33:04 PM PTW1 msg=0x1c (WM_ACTIVATEAPP) hwnd=0xc03dc wparam=0x1 lparam=0x68c result=0x0
5/13/2010 2:33:04 PM PTW90-5
5/13/2010 2:33:04 PM PTW1 msg=0xc059 hwnd=0xc03dc wparam=0x4130104 lparam=0x0 result=0x0
5/13/2010 2:33:04 PM PTW90-1 5
5/13/2010 2:33:04 PM PTW90-1-1
5/13/2010 2:33:04 PM PTW90-1-2
5/13/2010 2:33:04 PM TI1 Xerox DocuMate 262 False False False
5/13/2010 2:33:04 PM TI3 XRes=200 YRes=200 W=1700 H=2200 SPP=3 BPP=24, Planar=0, PT=2 Compr=0
5/13/2010 2:33:04 PM TI4 0 Native
5/13/2010 2:33:04 PM TI5
5/13/2010 2:33:04 PM DNT1
5/13/2010 2:33:04 PM DNT2
Thanks again,

Ryan

Re: Debugging options?

Posted: Fri May 14, 2010 4:37 pm
by Alex
Hello Ryan,

Please try to use your scanner from another application, for example: What results do you have?

Best regards, Alexander

Re: Debugging options?

Posted: Tue Jun 01, 2010 10:57 pm
by Peleus
Hi Alex,

Sorry. I finally got around to this.

I used TWAIN Toolkit with no problems. It scanned perfectly.

I now have this problem on a second computer running Windows 7 Enterprise. As soon as aquire is called, my program crashes.

On a side note, if I run the program again and attempt to scan it says the scanner is in use. I then have to either disable/reenable the scanner in device manager or just unplug it and plug it back in.

Thanks,

Ryan

Re: Debugging options?

Posted: Fri Jun 04, 2010 1:03 pm
by Alex
Hi Ryan,

Please send me a snippet of your code or application at support@vintasoft.com

Best regards, Alexander

Re: Debugging options?

Posted: Mon Jun 07, 2010 6:22 pm
by Peleus
Hi Alex,

Xerox released a new driver last week which has fixed the problem!

Thanks for your help,

Ryan

Re: Debugging options?

Posted: Thu Jun 10, 2010 3:14 pm
by Alex
Hi Ryan,

Thank you for the information.

Best regards, Alexander