ArgumentException at SetBitDepth

Bug #899987 reported by Matteo Rossi
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
iCopy
New
Undecided
Unassigned

Bug Description

Good afternoon to all..

Firstly compliments where they are DUE.... WELL DONE this is such a great piece of software thank you..

I have just upgraded to the new version of 1.5.0.41 as it has the ability to read from the document feeder of my Brother MFC620CN

Sadly every time I try and use this version I get;

Unhandled exception has occurred, this is with either with the flat bed or feeder (beta) selected.

However my earlier version works okay...

PLEASE PLEASE HELP AND ADVISE, if I am just doing something stupid, sorry but please help..

See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.ArgumentException: Value does not fall within the expected range.
   at WIA.PropertyClass.set_Value(Object& pvResult)
   at iCopy.Scanner.SetBitDepth(Int16 value)
   at iCopy.Scanner.ScanADF(ScanSettings options)
   at iCopy.appControl.Copy(ScanSettings options)
   at iCopy.mainFrm.btnCopy_Click(Object sender, EventArgs e)
   at System.Windows.Forms.Control.OnClick(EventArgs e)
   at System.Windows.Forms.Button.OnClick(EventArgs e)
   at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
   at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.ButtonBase.WndProc(Message& m)
   at System.Windows.Forms.Button.WndProc(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

************** Loaded Assemblies **************
mscorlib
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)
    CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
----------------------------------------
iCopy
    Assembly Version: 1.5.0.41
    Win32 Version: 1.5.0.41
    CodeBase: file:///W:/Software/iCopy/iCopy.exe
----------------------------------------
Interop.WIA
    Assembly Version: 1.0.0.0
    Win32 Version: 1.0.0.0
    CodeBase: file:///W:/Software/iCopy/Interop.WIA.DLL
----------------------------------------
System.Windows.Forms
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Drawing
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
Microsoft.VisualBasic
    Assembly Version: 8.0.0.0
    Win32 Version: 8.0.50727.4927 (NetFXspW7.050727-4900)
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/Microsoft.VisualBasic/8.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualBasic.dll
----------------------------------------
System.Configuration
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Configuration/2.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
System.Xml
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
urfvokrr
    Assembly Version: 1.5.0.41
    Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
iCopy.resources
    Assembly Version: 1.5.0.41
    Win32 Version: 1.5.0.41
    CodeBase: file:///W:/Software/iCopy/bg-BG/iCopy.resources.DLL
----------------------------------------
iCopy.resources
    Assembly Version: 1.5.0.41
    Win32 Version: 1.5.0.41
    CodeBase: file:///W:/Software/iCopy/zh-TW/iCopy.resources.DLL
----------------------------------------
iCopy.resources
    Assembly Version: 1.5.0.41
    Win32 Version: 1.5.0.41
    CodeBase: file:///W:/Software/iCopy/de-DE/iCopy.resources.DLL
----------------------------------------
iCopy.resources
    Assembly Version: 1.5.0.41
    Win32 Version: 1.5.0.41
    CodeBase: file:///W:/Software/iCopy/fr-FR/iCopy.resources.DLL
----------------------------------------
iCopy.resources
    Assembly Version: 1.5.0.41
    Win32 Version: 1.5.0.41
    CodeBase: file:///W:/Software/iCopy/it-IT/iCopy.resources.DLL
----------------------------------------
iCopy.resources
    Assembly Version: 1.5.0.41
    Win32 Version: 1.5.0.41
    CodeBase: file:///W:/Software/iCopy/ja-JP/iCopy.resources.DLL
----------------------------------------
iCopy.resources
    Assembly Version: 1.5.0.41
    Win32 Version: 1.5.0.41
    CodeBase: file:///W:/Software/iCopy/nl-NL/iCopy.resources.DLL
----------------------------------------
iCopy.resources
    Assembly Version: 1.5.0.41
    Win32 Version: 1.5.0.41
    CodeBase: file:///W:/Software/iCopy/pt-BR/iCopy.resources.DLL
----------------------------------------
iCopy.resources
    Assembly Version: 1.5.0.41
    Win32 Version: 1.5.0.41
    CodeBase: file:///W:/Software/iCopy/ro-RO/iCopy.resources.DLL
----------------------------------------
iCopy.resources
    Assembly Version: 1.5.0.41
    Win32 Version: 1.5.0.41
    CodeBase: file:///W:/Software/iCopy/ru-RU/iCopy.resources.DLL
----------------------------------------
iCopy.resources
    Assembly Version: 1.5.0.41
    Win32 Version: 1.5.0.41
    CodeBase: file:///W:/Software/iCopy/sk-SK/iCopy.resources.DLL
----------------------------------------
iCopy.resources
    Assembly Version: 1.5.0.41
    Win32 Version: 1.5.0.41
    CodeBase: file:///W:/Software/iCopy/tr-TR/iCopy.resources.DLL
----------------------------------------
iCopy.resources
    Assembly Version: 1.5.0.41
    Win32 Version: 1.5.0.41
    CodeBase: file:///W:/Software/iCopy/es-ES/iCopy.resources.DLL
----------------------------------------
CustomMarshalers
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)
    CodeBase: file:///C:/Windows/assembly/GAC_32/CustomMarshalers/2.0.0.0__b03f5f7f11d50a3a/CustomMarshalers.dll
----------------------------------------
Accessibility
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/Accessibility/2.0.0.0__b03f5f7f11d50a3a/Accessibility.dll
----------------------------------------

************** JIT Debugging **************
To enable just-in-time (JIT) debugging, the .config file for this
application or computer (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.

For example:

<configuration>
    <system.windows.forms jitDebugging="true" />
</configuration>

When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the computer
rather than be handled by this dialog box.

David

Revision history for this message
Matteo Rossi (teo-red90) wrote :

Please try with the attached version and let me know if it works correctly.

Revision history for this message
davidblocksage (davidblocksage) wrote : Re: [Bug 899987] Re: ArgumentException at SetBitDepth
Download full text (8.7 KiB)

Thank you so very much for your kind reply...

I will try right now..

>________________________________
> From: Matteo Rossi <email address hidden>
>To: <email address hidden>
>Sent: Sunday, 4 December 2011, 17:48
>Subject: [Bug 899987] Re: ArgumentException at SetBitDepth
>
>Please try with the attached version and let me know if it works
>correctly.
>
>** Attachment added: "Patch.zip"
https://bugs.launchpad.net/icopy/+bug/899987/+attachment/2619408/+files/Patch.zip
>
>--
>You received this bug notification because you are subscribed to the bug
>report.
>https://bugs.launchpad.net/bugs/899987
>
>Title:
>  ArgumentException at SetBitDepth
>
>Status in iCopy - Simple Photocopier:
>  New
>
>Bug description:
>  Good afternoon to all..
>
>  Firstly compliments where they are DUE.... WELL DONE this is such a
>  great piece of software thank you..
>
>  I have just upgraded to the new version of 1.5.0.41 as it has the
>  ability to read from the document feeder of my Brother MFC620CN
>
>  Sadly everytime i try and use the this version the I get;
>
>  Unhandled exception has occurred, this is with either with the flat
>  bead or feeder (beta) selected.
>
>  However my ealier version works okay...
>
>  PLEASE PLEASE HELP AND ADVISE, if I am just doing something stupid,
>  sorry but please help..
>
>
>  See the end of this message for details on invoking
>  just-in-time (JIT) debugging instead of this dialog box.
>
>  ************** Exception Text **************
>  System.ArgumentException: Value does not fall within the expected range.
>    at WIA.PropertyClass.set_Value(Object& pvResult)
>    at iCopy.Scanner.SetBitDepth(Int16 value)
>    at iCopy.Scanner.ScanADF(ScanSettings options)
>    at iCopy.appControl.Copy(ScanSettings options)
>    at iCopy.mainFrm.btnCopy_Click(Object sender, EventArgs e)
>    at System.Windows.Forms.Control.OnClick(EventArgs e)
>    at System.Windows.Forms.Button.OnClick(EventArgs e)
>    at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
>    at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
>    at System.Windows.Forms.Control.WndProc(Message& m)
>    at System.Windows.Forms.ButtonBase.WndProc(Message& m)
>    at System.Windows.Forms.Button.WndProc(Message& m)
>    at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
>    at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
>    at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
>
>
>  ************** Loaded Assemblies **************
>  mscorlib
>      Assembly Version: 2.0.0.0
>      Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)
>      CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
>  ----------------------------------------
>  iCopy
>      Assembly Version: 1.5.0.41
>      Win32 Version: 1.5.0.41
>      CodeBase: file:///W:/Software/iCopy/iCopy.exe
>  ----------------------------------------
>  Interop.WIA
>      Assembly Version: 1.0.0.0
>      Win32 Version: 1.0.0.0
>      CodeBase: file:///W:/Software/iCopy/Interop.WIA.DLL
>  -----------------------...

Read more...

Revision history for this message
davidblocksage (davidblocksage) wrote :
Download full text (17.1 KiB)

Matteo,

Thanks for trying..

The only think that I can think of is that I have not installed you batch one correctly.

downloaded, unzip to new folder iCopy patched for me..

then double clicked on the iCopy.exe file, interestingly once it ran, it selected the printer/scanner, i tried the test scanner option, that result okay.

It moved on the the main screen after setup bar, although didnt set a short cut to the desk top unlike earlier versions.

Set the printer option to print to bulldog PDF

I didnt select doc feeder option

Then pressed the icopy start

the was sadly presented with the same error message.. I have attached copy of screen dump for you please not the screen dump (from faststone capture) has captured two error boxes for some reason yet I can only see one on the screen.

box details are as;

See the end of this message for details on invoking
>just-in-time (JIT) debugging instead of this dialog box.
>
>>
>************** Exception Text **************
>System.ArgumentException: Value does not fall within the expected range.
>   at WIA.PropertyClass.set_Value(Object& pvResult)
>   at iCopy.Scanner.SetBitDepth(Int16 value)
>   at iCopy.Scanner.ScanADF(ScanSettings options)
>   at iCopy.appControl.Copy(ScanSettings options)
>   at iCopy.mainFrm.btnCopy_Click(Object sender, EventArgs e)
>   at System.Windows.Forms.Control.OnClick(EventArgs e)
>   at System.Windows.Forms.Button.OnClick(EventArgs e)
>   at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
>   at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
>   at System.Windows.Forms.Control.WndProc(Message& m)
>   at System.Windows.Forms.ButtonBase.WndProc(Message& m)
>   at System.Windows.Forms.Button.WndProc(Message& m)
>   at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
>   at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
>   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
>
>>
>
>>
>************** Loaded Assemblies **************
>mscorlib
>    Assembly Version: 2.0.0.0
>    Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)
>    CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
>----------------------------------------
>iCopy
>    Assembly Version: 1.5.0.41
>    Win32 Version: 1.5.0.41
>    CodeBase: file:///W:/Software/iCopy%20Patch%20For%20Me/iCopy.exe
>----------------------------------------
>Interop.WIA
>    Assembly Version: 1.0.0.0
>    Win32 Version: 1.0.0.0
>    CodeBase: file:///W:/Software/iCopy%20Patch%20For%20Me/Interop.WIA.DLL
>----------------------------------------
>System.Windows.Forms
>    Assembly Version: 2.0.0.0
>    Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)
>    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
>----------------------------------------
>System
>    Assembly Version: 2.0.0.0
>    Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)
>    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
>----------------------------------------
>System.D...

Revision history for this message
Matteo Rossi (teo-red90) wrote :

Well, it seems like either I didn't update the project before creating the zip archive or you didn't replace iCopy files correctly.
Anyway, I attached a recompiled version. Please try it. If you run into any problem, please look for iCopy.log file located either in iCopy folder or in C:\Users\<Your username>\AppData\Local\iCopy\

Thank you for your patience

Revision history for this message
davidblocksage (davidblocksage) wrote :
Download full text (9.0 KiB)

Thank for this and your help, I am currently working nights and have not been able to try it yet.

Sorry for the delay

Once again thank you so very much

David

On 5 Dec 2011, at 18:19, Matteo Rossi <email address hidden> wrote:

> Well, it seems like either I didn't update the project before creating the zip archive or you didn't replace iCopy files correctly.
> Anyway, I attached a recompiled version. Please try it. If you run into any problem, please look for iCopy.log file located either in iCopy folder or in C:\Users\<Your username>\AppData\Local\iCopy\
>
> Thank you for your patience
>
> ** Attachment added: "Patch2.zip"
> https://bugs.launchpad.net/icopy/+bug/899987/+attachment/2620788/+files/Patch2.zip
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/899987
>
> Title:
> ArgumentException at SetBitDepth
>
> Status in iCopy - Simple Photocopier:
> New
>
> Bug description:
> Good afternoon to all..
>
> Firstly compliments where they are DUE.... WELL DONE this is such a
> great piece of software thank you..
>
> I have just upgraded to the new version of 1.5.0.41 as it has the
> ability to read from the document feeder of my Brother MFC620CN
>
> Sadly everytime i try and use the this version the I get;
>
> Unhandled exception has occurred, this is with either with the flat
> bead or feeder (beta) selected.
>
> However my ealier version works okay...
>
> PLEASE PLEASE HELP AND ADVISE, if I am just doing something stupid,
> sorry but please help..
>
>
> See the end of this message for details on invoking
> just-in-time (JIT) debugging instead of this dialog box.
>
> ************** Exception Text **************
> System.ArgumentException: Value does not fall within the expected range.
> at WIA.PropertyClass.set_Value(Object& pvResult)
> at iCopy.Scanner.SetBitDepth(Int16 value)
> at iCopy.Scanner.ScanADF(ScanSettings options)
> at iCopy.appControl.Copy(ScanSettings options)
> at iCopy.mainFrm.btnCopy_Click(Object sender, EventArgs e)
> at System.Windows.Forms.Control.OnClick(EventArgs e)
> at System.Windows.Forms.Button.OnClick(EventArgs e)
> at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
> at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
> at System.Windows.Forms.Control.WndProc(Message& m)
> at System.Windows.Forms.ButtonBase.WndProc(Message& m)
> at System.Windows.Forms.Button.WndProc(Message& m)
> at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
> at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
> at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
>
>
> ************** Loaded Assemblies **************
> mscorlib
> Assembly Version: 2.0.0.0
> Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)
> CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
> ----------------------------------------
> iCopy
> Assembly Version: 1.5.0.41
> Win32 Version: 1.5.0.41
> ...

Read more...

Revision history for this message
davidblocksage (davidblocksage) wrote :
Download full text (9.9 KiB)

Matto,

Thank you for this, I think I must be doing something wrong...

Please find problem details and I will attach the log file and you will possibly laugh and say its me just doing something wrong..

As Copied from error window.

Description:
  Stopped working

Problem signature:
  Problem Event Name:CLR20r3
  Problem Signature 01:icopy.exe
  Problem Signature 02:1.5.0.41
  Problem Signature 03:4edd0a3a
  Problem Signature 04:System
  Problem Signature 05:2.0.0.0
  Problem Signature 06:4a275e12
  Problem Signature 07:1fb0
  Problem Signature 08:1bd
  Problem Signature 09:System.Net.WebException
  OS Version:6.1.7600.2.0.0.256.48
  Locale ID:2057

Read our privacy statement online:
  http://go.microsoft.com/fwlink/?linkid=104288&clcid=0x0409

If the online privacy statement is not available, please read our privacy statement offline:
  C:\Windows\system32\en-US\erofflps.txt

I have also attached screen shot of the error message.

Yours with much thanks

David

>________________________________
> From: Matteo Rossi <email address hidden>
>To: <email address hidden>
>Sent: Monday, 5 December 2011, 18:19
>Subject: [Bug 899987] Re: ArgumentException at SetBitDepth
>
>Well, it seems like either I didn't update the project before creating the zip archive or you didn't replace iCopy files correctly.
>Anyway, I attached a recompiled version. Please try it. If you run into any problem, please look for iCopy.log file located either in iCopy folder or in C:\Users\<Your username>\AppData\Local\iCopy\
>
>Thank you for your patience
>
>** Attachment added: "Patch2.zip"
https://bugs.launchpad.net/icopy/+bug/899987/+attachment/2620788/+files/Patch2.zip
>
>--
>You received this bug notification because you are subscribed to the bug
>report.
>https://bugs.launchpad.net/bugs/899987
>
>Title:
>  ArgumentException at SetBitDepth
>
>Status in iCopy - Simple Photocopier:
>  New
>
>Bug description:
>  Good afternoon to all..
>
>  Firstly compliments where they are DUE.... WELL DONE this is such a
>  great piece of software thank you..
>
>  I have just upgraded to the new version of 1.5.0.41 as it has the
>  ability to read from the document feeder of my Brother MFC620CN
>
>  Sadly everytime i try and use the this version the I get;
>
>  Unhandled exception has occurred, this is with either with the flat
>  bead or feeder (beta) selected.
>
>  However my ealier version works okay...
>
>  PLEASE PLEASE HELP AND ADVISE, if I am just doing something stupid,
>  sorry but please help..
>
>
>  See the end of this message for details on invoking
>  just-in-time (JIT) debugging instead of this dialog box.
>
>  ************** Exception Text **************
>  System.ArgumentException: Value does not fall within the expected range.
>    at WIA.PropertyClass.set_Value(Object& pvResult)
>    at iCopy.Scanner.SetBitDepth(Int16 value)
>    at iCopy.Scanner.ScanADF(ScanSettings options)
>    at iCopy.appControl.Copy(ScanSettings options)
>    at iCopy.mainFrm.btnCopy_Click(Object sender, EventArgs e)
>    at System.Windows.Forms.Control.OnClick(EventArgs e)
>    at System.Windows.Forms.Button.OnClick(EventArgs e)
>    at System.Windows.For...

Revision history for this message
Matteo Rossi (teo-red90) wrote :

Dear david,
you're not doing anything wrong. It is just very difficult to understand how every single scanner works. Unfortunately the APIs provided by Microsoft are not very well documented and every scanner uses different properties and functions, so we need to proceed by trial and error. I suggest you try with the patch attached to this thread:

http://sourceforge.net/tracker/?func=detail&aid=3458289&group_id=201245&atid=976783

(direct link to the file: http://sourceforge.net/tracker/download.php?group_id=201245&atid=976783&file_id=430683&aid=3458289)

this is reported to work by some users. Please let me know how it works.
I wish to thank you for your patience and your support!

Yours
Matteo Rossi

Debra Virden (teddydlv)
description: updated
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.