[sane-devel] Network backend and lineart mode

2012-08-10 Thread Aleksandr Dezhin
On 08/08/2012 11:02 PM, Stef wrote: > On 08/08/2012 14:40, Aleksandr Dezhin wrote: >> On 08/05/2012 12:13 AM, Stef wrote: >>> Hello, >>> >>> in some cases, the genesys backend returns more data than >>> max_len in sane_read, which is wrong a

[sane-devel] Network backend and lineart mode

2012-08-08 Thread Aleksandr Dezhin
On 08/05/2012 12:13 AM, Stef wrote: > Hello, > > in some cases, the genesys backend returns more data than max_len > in sane_read, which is wrong and crashes saned (buffer overflow). I am > going to put a temporary fix, since the rewrite needed is too big for > SANE 1.0.23. > > Regards,

[sane-devel] gt68xx - sane_open() afrer sane_close()

2012-07-31 Thread Aleksandr Dezhin
remain unchanged and valid until > (a) another call to this function is performed or (b) a call to > sane_exit() is performed." > > So, sane_close should not invalidate the device. > > allan > > On Tue, Jul 31, 2012 at 12:15 PM, Aleksandr Dezhin wrote: >> Calli

[sane-devel] gt68xx - sane_open() afrer sane_close()

2012-07-31 Thread Aleksandr Dezhin
is possible that this is a bug in that backend. perhaps you should > call sane_get_devices again? > > allan > > On Tue, Jul 31, 2012 at 10:13 AM, Aleksandr Dezhin wrote: >> Hello, >> >> As I wrote, I'm trying to develop web interface for SANE. I am developing

[sane-devel] gt68xx - sane_open() afrer sane_close()

2012-07-31 Thread Aleksandr Dezhin
Hello, As I wrote, I'm trying to develop web interface for SANE. I am developing it using Python.I do not want to lock device so that other WSGI-proccess instances can access it. Atypical code flow is as follows: sane_init() sane_get_devices() // user selected device, showing page with capabil

[sane-devel] Network backend and lineart mode

2012-07-31 Thread Aleksandr Dezhin
On 07/30/2012 11:57 PM, Stef wrote: > could you send me the exact scanimage command you use on the client > side ? # scanimage -L device `genesys:libusb:002:003' is a Canon LiDE 210 flatbed scanner device `net:localhost:genesys:libusb:002:003' is a Canon LiDE 210 flatbed scanner # scanimage -d ge

[sane-devel] Network backend and lineart mode

2012-07-30 Thread Aleksandr Dezhin
On 07/30/2012 02:47 PM, Aleksandr Dezhin wrote: > On 07/29/2012 10:35 AM, stef wrote: >> Le 29/07/2012 08:22, Aleksandr Dezhin a ?crit : >>> On 07/28/2012 12:46 PM, Stef wrote: >>>> On 27/07/2012 23:25, Aleksandr Dezhin wrote: >>>>> Dear developers, &

[sane-devel] Network backend and lineart mode

2012-07-30 Thread Aleksandr Dezhin
On 07/29/2012 10:35 AM, stef wrote: > Le 29/07/2012 08:22, Aleksandr Dezhin a ?crit : >> On 07/28/2012 12:46 PM, Stef wrote: >>> On 27/07/2012 23:25, Aleksandr Dezhin wrote: >>>> Dear developers, >>>> >>>> I am trying to develop another web-bas

[sane-devel] Network backend and lineart mode

2012-07-29 Thread Aleksandr Dezhin
On 07/28/2012 12:46 PM, Stef wrote: > On 27/07/2012 23:25, Aleksandr Dezhin wrote: >> Dear developers, >> >> I am trying to develop another web-based interface for sane. Faced >> with a problem, and do not know how to avoid it or solve it. >> >> I have Can

[sane-devel] Network backend and lineart mode

2012-07-28 Thread Aleksandr Dezhin
Dear developers, I am trying to develop another web-based interface for sane. Faced with a problem, and do not know how to avoid it or solve it. I have Canon LiDE 210 scanner, it works fine with genesys backend. Locally scanimage works in all modes: color, gray, lineart. However, if I scan thr