Yet another threading question...

Jim West Jim.West at checklogix.com
Thu Jun 26 10:53:05 EDT 2003


Good day all,

  Ok, I'm starting to get the hang of this Python thing...really pretty
cool actually.  Again, thanx to those that have helped me thus far.

  I now have another stumbling block to which I would like help.

  Ok, here is my enviroment:

        Windows 2K
        Python 2.2
        MinGW and MSys

  I'm writing a Python extension to a 3rd party DLL that controls an
external hardware toy.

  One of the DLL methods is a callback registration interface.  The 3rd
party DLL is threaded as the callback is asynchronous.

  I'm able to call my extension function via Python to "register" my
Python function as the callback function via a C function proxy in the
extension.

  All is well until the DLL invokes the callback.  When the callback
attempts to invoke my "registered" Python function the Python
interpreter bails with an access violation.

  I'm thinking it may have something to do with threading and thus am
asking for your insight to this.

  I'm thinking I may have to put my proxy C callback function in it's
own thread.  If so, then would some kind soul point me in the right
direction as to how to do this with just the MinGW environment since we
do not have nor use MSVC++.

  Thank you.

- Jim







More information about the Python-list mailing list