From: MHammond at skippinet.com.au (Mark Hammond)
Date: Thu, 8 Apr 1999 08:54:12 +1000
Subject: COM Event Sinks and Connection Points in Python
References: <7eggfh$o0f$1@nnrp1.dejanews.com>
Message-ID: <7egnl2$ca5$1@m2.c2.telstra-mm.net.au>
X-UID: 695                                                  

cingram at my-dejanews.com wrote in message
<7eggfh$o0f$1 at nnrp1.dejanews.com>...
>I am trying to use functionality from a DLL that requires me to create a
COM
>event sink so that it can call back with events.  I am trying to write this
>event sink in Python.  However, when I try to create a SimpleConnection
>object, it gives this exception: "Unable to open the access token of the
>current thread".

There appears to be some problem using connection points from Python.exe.
Some objects - mainly OCX controls - only fire event when running inside
Pythonwin as an OCX.

The "threading bug" I mention isnt the same as this.  The threading bug will
actually cause Python to die completely with an access violation.  I am
fairly certain they are not related.

Events seem a black art.  Im happy to help you track this down, but I havent
much time...

Mark.






