Re: ctypes-users Digest, Vol 49, Issue 6
Adam Morris <[email protected]>
| Newsgroups | gmane.comp.python.ctypes |
|---|---|
| Message-ID | <[email protected]> |
> self.function_instance = > self.keep_wrap_function_reference(python_function) > result = self.cdll.Ax_SetVoteCallback(self.function_instance,context) That was it. DUH. I thought the self.keep_wrap_function_reference would actually keep the ref counter up. Of course not! THANKS (you just saved me a sleepless night...) ------------------------------------------------------------------------------ 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