Victor Lin wrote > I know I have to call PyEval_InitThreads if my module create threads > that will contact python stuff, for example, call a python callback > function from threads. But however, it is ctypes. I have no idea > should I do that for the imported dll? If it is, how?
You have to initialize the thread state for the current thread, too. See Python/pystate.c:PyThreadState_New() -- http://mail.python.org/mailman/listinfo/python-list