help with callback from C dll
Adam Morris <[email protected]>
| Newsgroups | gmane.comp.python.ctypes |
|---|---|
| Message-ID | <[email protected]> |
Thanks for your help, I have a dynamic library from a commercial company and I'm porting it to Python to be used from within my own scripts. I'm using ctypes to do so. The library requires me to send it a function to be used as a callback. Everything else works fine, except when this callback gets called: I'm consistently getting bus errors. I'm guessing that it's because their C code is initiating threads, and the normal procedure is to reinstate the GIL and then call the callback? And to do that, you need to do so in C. Does this mean that I have to write a wrapper over top of the dynamic library in order to get this working in Python? Please tell me there's another way! ------------------------------------------------------------------------------ ThinkGeek and WIRED's GeekDad team up for the Ultimate GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the lucky parental unit. See the prize list and enter to win: http://p.sf.net/sfu/thinkgeek-promo _______________________________________________ ctypes-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/ctypes-users