Cancelling TWAIN scan hangs Script-Fu

"Hermann Josef Hill" <[email protected]>
Newsgroups gmane.comp.video.gimp.windows.devel
Message-ID <003b01c25b65$4c4107f0$6464a8c0@notebook>
Hi,

while trying to write a Script-Fu for scanning images, I noticed that
pressing the "Cancel" button in the data source selection window or closing
the scanning window without scanning an image is hanging my script.

Investigating the error in the source of the TWAIN plug-in, I think the
error is in line 429 of twain.c, which reads

      getImage(twSession);

If I press "Cancel" , the getImage() function returns FALSE, indicating that
it couldn't call the requestImageAcquire() function, but the return value
isn't evaluated. The process hangs because there will never be incoming
image data, and so the WM_QUIT message does never come.

Can anybody correct this error? I would have done it myself, but I didn't
manage to set up an environment in which I can compile the files (I tried
with Visual C++ and keep getting "can't find <config.h> / can't find
"<glibconfig.h>" messages). If anybody could point me to a solution for
compiling these files, I would also greatly appreciate that...

Thanks in advance for your help

Regards, Hermann
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.