Quantcast
Channel: Recent Threads — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 204402

Call C code - multithreaded complication

$
0
0

Hi all, I apologise if this has come up before but the search engine on this site doesn't work well with multi-word search terms. I'm currently struggling with the following scenario:

  • I have the source code of a C library that I wish to include in my iOS app.
  • I want to call functions in the library, and have them call my managed C# code.
  • A slight complication is that the call/callbacks happen across threads.

Can anyone shed some light on how to set up the project(s) in my solution so I can make this work? I have tried following the various support / knowledge base articles on "binding" but they all refer to libraries that are purely linked rather than included as source files.

Many thanks in advance

Cheers

David


Viewing all articles
Browse latest Browse all 204402

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>