sane-project-website/old-archive/1998-04/0034.html

66 wiersze
3.2 KiB
HTML

<!-- received="Fri Apr 3 08:30:58 1998 PST" -->
<!-- sent="Fri, 3 Apr 1998 11:23:38 -0500 (EST)" -->
<!-- name="Chris Pinkham" -->
<!-- email="cpinkham@billing.infi.net" -->
<!-- subject="Re: sane_read returning *len == 0" -->
<!-- id="9804031623.AA08616@mulder.looney.infi.net" -->
<!-- inreplyto="199804030831.AAA01897@panda.mostang.com" -->
<title>sane-devel: Re: sane_read returning *len == 0</title>
<h1>Re: sane_read returning *len == 0</h1>
<b>Chris Pinkham</b> (<a href="mailto:cpinkham@billing.infi.net"><i>cpinkham@billing.infi.net</i></a>)<br>
<i>Fri, 3 Apr 1998 11:23:38 -0500 (EST)</i>
<p>
<ul>
<li> <b>Messages sorted by:</b> <a href="date.html#34">[ date ]</a><a href="index.html#34">[ thread ]</a><a href="subject.html#34">[ subject ]</a><a href="author.html#34">[ author ]</a>
<!-- next="start" -->
<li> <b>Next message:</b> <a href="0035.html">zerbst@tu-harburg.de: "Re: Microtek 35t +"</a>
<li> <b>Previous message:</b> <a href="0033.html">Hugo van der Kooij: "New spec file for PRE 0.72"</a>
<li> <b>In reply to:</b> <a href="0026.html">David Mosberger-Tang: "Re: sane_read returning *len == 0"</a>
<!-- nextthread="start" -->
<li> <b>Next in thread:</b> <a href="0047.html">David Mosberger-Tang: "Re: sane_read returning *len == 0"</a>
<li> <b>Next in thread:</b> <a href="0038.html">Matto Marjanovic: "Re: sane_read returning *len == 0"</a>
<!-- reply="end" -->
</ul>
<!-- body="start" -->
<i>&gt; This is indeed a bug. Can you try changing xscanimage.c around line</i><br>
<i>&gt; 584 to read like this:</i><br>
<i>&gt; </i><br>
<i>&gt; if (scan_win.input_tag &gt;= 0 &amp;&amp; !len)</i><br>
<i>&gt; break; /* out of data for now */</i><br>
<i>&gt; </i><br>
<i>&gt; and tell me how it works?</i><br>
<p>
I should have put this in my first post. I did go into xscanimage.c and<br>
xcam.c and add an if statement (for my own testing) that would just<br>
continue the while(1) loop if the program still needed to retrieve data<br>
but there wasn't any waiting. I was able to scan correctly using<br>
xcanimage and xcam after I did this. I will try out your mod when I<br>
get home tonight and give an update here.<br>
<p>
<p>
Chris<br>
<p>
/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\<br>
<i>| Chris Pinkham |</i><br>
<i>| <a href="mailto:cpinkham@sh001.infi.net">cpinkham@sh001.infi.net</a> |</i><br>
\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/<br>
<p>
<p>
<pre>
--
Source code, list archive, and docs: <a href="http://www.mostang.com/sane/">http://www.mostang.com/sane/</a>
To unsubscribe: echo unsubscribe sane-devel | mail <a href="mailto:majordomo@mostang.com">majordomo@mostang.com</a>
</pre>
<!-- body="end" -->
<p>
<ul>
<!-- next="start" -->
<li> <b>Next message:</b> <a href="0035.html">zerbst@tu-harburg.de: "Re: Microtek 35t +"</a>
<li> <b>Previous message:</b> <a href="0033.html">Hugo van der Kooij: "New spec file for PRE 0.72"</a>
<li> <b>In reply to:</b> <a href="0026.html">David Mosberger-Tang: "Re: sane_read returning *len == 0"</a>
<!-- nextthread="start" -->
<li> <b>Next in thread:</b> <a href="0047.html">David Mosberger-Tang: "Re: sane_read returning *len == 0"</a>
<li> <b>Next in thread:</b> <a href="0038.html">Matto Marjanovic: "Re: sane_read returning *len == 0"</a>
<!-- reply="end" -->
</ul>