# Re: sane_read returning *len == 0

Chris Pinkham (cpinkham@billing.infi.net)
Fri, 3 Apr 1998 11:23:38 -0500 (EST)

- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
- Next message: zerbst@tu-harburg.de: "Re: Microtek 35t +"
- Previous message: Hugo van der Kooij: "New spec file for PRE 0.72"
- In reply to: David Mosberger-Tang: "Re: sane_read returning *len == 0"
- Next in thread: David Mosberger-Tang: "Re: sane_read returning *len == 0"
- Next in thread: Matto Marjanovic: "Re: sane_read returning *len == 0"

> This is indeed a bug. Can you try changing xscanimage.c around line
> 584 to read like this:
>
> if (scan_win.input_tag >= 0 && !len)
> break; /* out of data for now */
>
> and tell me how it works?

I should have put this in my first post. I did go into xscanimage.c and
xcam.c and add an if statement (for my own testing) that would just
continue the while(1) loop if the program still needed to retrieve data
but there wasn't any waiting. I was able to scan correctly using
xcanimage and xcam after I did this. I will try out your mod when I
get home tonight and give an update here.

Chris

/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
| Chris Pinkham |
| cpinkham@sh001.infi.net |
\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/

    --
    Source code, list archive, and docs: http://www.mostang.com/sane/
    To unsubscribe: echo unsubscribe sane-devel | mail majordomo@mostang.com

- Next message: zerbst@tu-harburg.de: "Re: Microtek 35t +"
- Previous message: Hugo van der Kooij: "New spec file for PRE 0.72"
- In reply to: David Mosberger-Tang: "Re: sane_read returning *len == 0"
- Next in thread: David Mosberger-Tang: "Re: sane_read returning *len == 0"
- Next in thread: Matto Marjanovic: "Re: sane_read returning *len == 0"