<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> 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> I am trying to write my own front-end but I keep on getting SIGSEGV always after sane function calls after sane_init.<br> 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(&saneVersionCode, NULL );<br>scanDeviceStatus = sane_open(scanDeviceName, &scanDeviceHandle);<br>sane_close(scanDeviceHandle);<br>sane_exit();<br><br><br> I just want to make sure I can connect to the scanner with the above code.<br><br> 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> 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> Has anyone encountered this issue or know the problem. Your assistance is really appreciated. <br> Thanks.<br><br><br>Regards,<br><br>Robert Bui<br><br /><hr />Make ninemsn your homepage! <a href='http://windowslive.ninemsn.com.au/article.aspx?id=813730' target='_new'>Get the latest news, goss and sport</a></body>
</html>