[python-win32] wxPython and COM: creating multiple LocalServer Instances

Keldar Keldariad keldar_atavian at yahoo.com
Wed Jun 9 23:41:51 EDT 2004


When trying to create 2 different COM objects running
wxPython apps, I ran into the problem of wxPython
complaining and crashing when started in more than one
thread. The solution to this was easy enough - I
simply made the 2 objects to start as LocalServers,
which launched them both in separate interpreter
processes, keeping the wxPython threads separate.
However, now a new problem came up - all instances of
the same object are started in the same interpreter
process, so when trying to create more than one
instance of the same object I run into exactly the
same threading issue as before. Is there a way to
force the object to be created in a new process
regardless of whether there's already an instance of
that object running or not? Where would I have to look
to do that. I tried going through policy.py but that
doesn't seem to help much, or maybe I am looking at it
wrong. Thanks in advance.


	
		
__________________________________
Do you Yahoo!?
Friends.  Fun.  Try the all-new Yahoo! Messenger.
http://messenger.yahoo.com/ 



More information about the Python-win32 mailing list