[sane-devel] gt68xx - sane_open() afrer sane_close()
m. allan noah
kitno455 at gmail.com
Tue Jul 31 16:27:06 UTC 2012
I would try it, and see if the device_id is the same in both calls to
sane_open. In either case, I think this is a bug in the backend. Sane
standard says about sane_get_devices:
"The returned list is guaranteed to 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.
On Tue, Jul 31, 2012 at 12:15 PM, Aleksandr Dezhin <me at dezhin.net> wrote:
> Calling sane_get_devices() before each sane_open() something helps isolate
> the problem? I am trying to develop a program that works a dozen devices at
> the same time. Asurvey of all the devices at each operation seems to me
> something strange.
> On 07/31/2012 06:23 PM, m. allan noah wrote:
>> It is possible that this is a bug in that backend. perhaps you should
>> call sane_get_devices again?
>> On Tue, Jul 31, 2012 at 10:13 AM, Aleksandr Dezhin <me at dezhin.net> wrote:
>>> As I wrote, I'm trying to develop web interface for SANE. I am developing
>>> using Python.I do not want to lock device so that other WSGI-proccess
>>> instances can access it. Atypical code flow is as follows:
>>> // user selected device, showing page with capabilities
>>> // user requested to scan page
>>> // program exitting
>>> Canon LiDE 210 with genesys backend or HPLIP works as expected, but
>>> Bearpaw 1200 CU Plus with gt68xx fails open_device() secondly, after
>>> sane_close(). If I skip first open()/close() - second block works
>>> What is this? Bug or feature?
>>> Sorry I can not give an example of a simple program in C. If it helps I
>>> send a link to the repository with my application. It contains some
>>> version of the python C extension from pysane.
>>> sane-devel mailing list: sane-devel at lists.alioth.debian.org
>>> Unsubscribe: Send mail with subject "unsubscribe your_password"
>>> to sane-devel-request at lists.alioth.debian.org
> sane-devel mailing list: sane-devel at lists.alioth.debian.org
> Unsubscribe: Send mail with subject "unsubscribe your_password"
> to sane-devel-request at lists.alioth.debian.org
"The truth is an offense, but not a sin"
More information about the sane-devel