<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
</style>
</head>
<body class='hmmessage'>
Hello all,<br>&nbsp;&nbsp; I scan using xsane interface without any problem with Kodak i11220 on Linux Fedora 10. So, I know the Kodak driver for Linux is working. <br>&nbsp;&nbsp; I am trying to write my own front-end but I keep on getting SIGSEGV always after sane function calls after sane_init.<br>&nbsp;&nbsp; I have this sequence of calls base:<br><br>SANE_String_Const scanDeviceName;<br>SANE_Int saneVersionCode;<br>SANE_Handle scanDeviceHandle;<br><br>scanDeviceName = "kds:i1210/i1220";<br><br>scanDeviceStatus = sane_init(&amp;saneVersionCode, NULL );<br>scanDeviceStatus = sane_open(scanDeviceName, &amp;scanDeviceHandle);<br>sane_close(scanDeviceHandle);<br>sane_exit();<br><br><br>&nbsp;&nbsp; I just want to make sure I can connect to the scanner with the above code.<br><br>&nbsp;&nbsp; The first time I call it is fine (ie no error messages and all status returned as SANE_STATUS_GOOD) but the same time I call it, I get SIGSEGV at sane_open. If I put sane_get_devices straight after sane_init then I get the SIGSEGV at sane_get_devices. I get INVALID ARGUMENT (ie <tt>SANE_STATUS_INVAL)</tt>. <br>&nbsp;&nbsp; So it looks like either my sane_init or sane_exit not correct, and not the sane_open or sane_close. Is my assumption correct?<br>&nbsp;&nbsp; Has anyone encountered this issue or know the problem. Your assistance is really appreciated. <br>&nbsp;&nbsp; Thanks.<br><br><br>Regards,<br><br>Robert Bui<br><br /><hr />Let us help with car news, reviews and more <a href='http://a.ninemsn.com.au/b.aspx?URL=http%3A%2F%2Fsecure%2Dau%2Eimrworldwide%2Ecom%2Fcgi%2Dbin%2Fa%2Fci%5F450304%2Fet%5F2%2Fcg%5F801459%2Fpi%5F1004813%2Fai%5F859641&_t=762955845&_r=tig_OCT07&_m=EXT' target='_new'>Looking for a new car this winter?</a></body>
</html>