Menu

#16 Twain cs sample MacOS

1.0
open
nobody
None
2015-10-20
2015-10-19
No

Hi there!

I am trying to make twain cs samples work on mac os 10.8.5, using mono and Epson DS-560. I managed to make it work on windows, but merely the same steps don't work out for Mac. twain lifecycle seems to be fine . I am going open DSM -> open DS -> Enable DS. Enable DS returns success status and literally nothing happens. By this point on win machine i get scanner feeder work, and document gets scanned, but on mac it doesn't. And another thing is if i send enableds with show ui flag being true, i am seeing native epson scan window and if click scan button on this window, feeder is starting. I am really stuck at this point, i was trying to follow call stack and stoped at native call to twain.framework still returning success status. Am i doing something wrong?

Discussion

  • Kanstantsin

    Kanstantsin - 2015-10-19

    I faced this issue too. And I have the c++ code which 100% worked. Do the same steps on mac in c#, and no success.

     
  • Mark

    Mark - 2015-10-20

    The TWAIN DSM on the Mac, which Apple installs, appears to have a bug when it comes to support for the DAT_CALLBACK/DAT_CALLBACK2 operations. Basically, the DSM refuses to deliver them to the application. I've gotten around this for my own drivers with a DSM patch, but I'm in a situation right now where I need a more robust solution, myself. I'll update here when I figure something out.

     
  • Aleksandr Kashkevich

    Did some investigation today in comparing cpp sample we have with twaincstst. All I do is precisely the same thing i do in cpp. The only difference is that callback in c# is not being called. Registercall is doing the same thing, returning success. But how does it manage to invoke callbacks from cpp code?

     
  • Kanstantsin

    Kanstantsin - 2015-10-20

    Hello all. In 1.9 specification on page 28 there is instruction how to handle events from dsm. Why does mac version uses Register_Callback instead of passing the null events and filtering the results?

     

    Last edit: Kanstantsin 2015-10-20

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.