sane-project-website/old-archive/2000-01/0282.html

131 wiersze
5.3 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"
"http://www.w3.org/TR/REC-html40/loose.dtd">
<HTML>
<HEAD>
<TITLE>sane-devel: Re: Segfault in xscanimage</TITLE>
<META NAME="Author" CONTENT="Oliver Rauch (oliver.rauch@Wolfsburg.DE)">
<META NAME="Subject" CONTENT="Re: Segfault in xscanimage">
</HEAD>
<BODY BGCOLOR="#FFFFFF" TEXT="#000000">
<H1>Re: Segfault in xscanimage</H1>
<!-- received="Sat Jan 29 14:25:29 2000" -->
<!-- isoreceived="20000129222529" -->
<!-- sent="Sat, 29 Jan 2000 23:32:08 +0100" -->
<!-- isosent="20000129223208" -->
<!-- name="Oliver Rauch" -->
<!-- email="oliver.rauch@Wolfsburg.DE" -->
<!-- subject="Re: Segfault in xscanimage" -->
<!-- id="38936A68.6BF8189B@wolfsburg.de" -->
<!-- inreplyto="20000129130250.A32427@khk.net" -->
<STRONG>From:</STRONG> Oliver Rauch (<A HREF="mailto:oliver.rauch@Wolfsburg.DE?Subject=Re:%20Segfault%20in%20xscanimage&In-Reply-To=&lt;38936A68.6BF8189B@wolfsburg.de&gt;"><EM>oliver.rauch@Wolfsburg.DE</EM></A>)<BR>
<STRONG>Date:</STRONG> Sat Jan 29 2000 - 14:32:08 PST
<P>
<!-- next="start" -->
<LI><STRONG>Next message:</STRONG> <A HREF="0283.html">Meir Faraj: "About scanning with an USB scanner ."</A>
<UL>
<LI><STRONG>Previous message:</STRONG> <A HREF="0281.html">Ewald R. de Wit: "Re: HP PhotoSmart: Feeding slides, the entire area is not scanned"</A>
<LI><STRONG>In reply to:</STRONG> <A HREF="0280.html">Karl Heinz Kremer: "Re: Segfault in xscanimage"</A>
<!-- nextthread="start" -->
<LI><STRONG>Next in thread:</STRONG> <A HREF="0283.html">Meir Faraj: "About scanning with an USB scanner ."</A>
<LI><STRONG>Reply:</STRONG> <A HREF="0283.html">Meir Faraj: "About scanning with an USB scanner ."</A>
<!-- reply="end" -->
<LI><STRONG>Messages sorted by:</STRONG>
<A HREF="date.html#282">[ date ]</A>
<A HREF="index.html#282">[ thread ]</A>
<A HREF="subject.html#282">[ subject ]</A>
<A HREF="author.html#282">[ author ]</A>
</UL>
<HR NOSHADE><P>
<!-- body="start" -->
<P>
Karl Heinz Kremer wrote:
<BR>
<P><EM>&gt; On Sat, Jan 29, 2000 at 05:40:07PM +0100, Oliver Rauch wrote:
</EM><BR>
<EM>&gt; &gt; Hi Karl Heinz
</EM><BR>
<EM>&gt; &gt;
</EM><BR>
<EM>&gt; &gt; try if it works when you comment out:
</EM><BR>
<EM>&gt; &gt; s-&gt;opt[ OPT_GAMMA_VECTOR].cap |= SANE_CAP_ADVANCED;
</EM><BR>
<EM>&gt; &gt; and the equivalent lines for red/green/blue
</EM><BR>
<EM>&gt; &gt;
</EM><BR>
<EM>&gt;
</EM><BR>
<EM>&gt; How did you know? When I remove the &quot;Advanced&quot; settings from
</EM><BR>
<EM>&gt; the Options then it works. This however causes the gamma curves
</EM><BR>
<EM>&gt; to be placed on the &quot;normal&quot; interface of xscanimage and not the
</EM><BR>
<EM>&gt; advanced one where they belong (IMHO).
</EM><BR>
<EM>&gt;
</EM><BR>
<P>The gamma curves are placed in an own box in xscanimage.
<BR>
You wrote you get a crash when you disable the advanced options
<BR>
and I never have seen that someone put the gamma table into &quot;advanced&quot;,
<BR>
so it was relative simple to guess.
<BR>
<P>If you add a bool option &quot;custom gamma table&quot; (take a look in saneopts.h)
<BR>
that sets the gamma vectors to .cap |= SANE_CAP_INACTIVE
<BR>
then the user can disable the gamma table compareable to the way the
<BR>
advanced options can be enabled/disabled.
<BR>
<P>Of course it is a bug in xscanimage that you get a segfault. But I think it is not
<BR>
too bad in the moment!
<BR>
<P>Bye
<BR>
Oliver
<BR>
<P><P><PRE>
--
Homepage: <A HREF="http://www.wolfsburg.de/~rauch">http://www.wolfsburg.de/~rauch</A>
sane-umax: <A HREF="http://www.wolfsburg.de/~rauch/sane/sane-umax.html">http://www.wolfsburg.de/~rauch/sane/sane-umax.html</A>
xsane: <A HREF="http://www.wolfsburg.de/~rauch/sane/sane-xsane.html">http://www.wolfsburg.de/~rauch/sane/sane-xsane.html</A>
E-Mail: mailto:<A HREF="mailto:Oliver.Rauch@Wolfsburg.DE?Subject=Re:%20Segfault%20in%20xscanimage&In-Reply-To=&lt;38936A68.6BF8189B@wolfsburg.de&gt;">Oliver.Rauch@Wolfsburg.DE</A>
<P><P><P><P>--
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?Subject=Re:%20Segfault%20in%20xscanimage&In-Reply-To=&lt;38936A68.6BF8189B@wolfsburg.de&gt;">majordomo@mostang.com</A>
</PRE>
<P><!-- body="end" -->
<HR NOSHADE>
<UL>
<!-- next="start" -->
<LI><STRONG>Next message:</STRONG> <A HREF="0283.html">Meir Faraj: "About scanning with an USB scanner ."</A>
<LI><STRONG>Previous message:</STRONG> <A HREF="0281.html">Ewald R. de Wit: "Re: HP PhotoSmart: Feeding slides, the entire area is not scanned"</A>
<LI><STRONG>In reply to:</STRONG> <A HREF="0280.html">Karl Heinz Kremer: "Re: Segfault in xscanimage"</A>
<!-- nextthread="start" -->
<LI><STRONG>Next in thread:</STRONG> <A HREF="0283.html">Meir Faraj: "About scanning with an USB scanner ."</A>
<LI><STRONG>Reply:</STRONG> <A HREF="0283.html">Meir Faraj: "About scanning with an USB scanner ."</A>
<!-- reply="end" -->
<LI><STRONG>Messages sorted by:</STRONG>
<A HREF="date.html#282">[ date ]</A>
<A HREF="index.html#282">[ thread ]</A>
<A HREF="subject.html#282">[ subject ]</A>
<A HREF="author.html#282">[ author ]</A>
</UL>
<!-- trailer="footer" -->
<HR NOSHADE>
<P>
<SMALL>
<EM>
This archive was generated by <A HREF="http://www.hypermail.org/">hypermail 2b29</A>
: <EM>Sat Jan 29 2000 - 14:26:41 PST</EM>
</EM>
</SMALL>
</BODY>
</HTML>