Hi, I guess the bug is that in sane_close the scanner_devList entry corresponding to the open handle is destroyed, and later in sane_exit all scanner_devList entries are destroyed again. I guess in sane_close, the entry should be be destroyed, but only marked as free or so. regards -- jochen