win32com problem: more than one instance
SSchukat at dspace.de
Fri Aug 31 18:05:37 CEST 2007
excel registers its COM objects with REGCLS_SINGLEUSE that means one COM
object is created
per process. In Solidworks it seems that that they register with
REGCLS_MULTIPLEUSE, which means
on process can serve more than one COM object. Hence you have no chance
to get multiple instances
running in any COM client.
> -----Original Message-----
> From: python-list-bounces+sschukat=dspace.de at python.org
> [mailto:python-list-bounces+sschukat=dspace.de at python.org] On
> Behalf Of Tim Golden
> Sent: Friday, August 31, 2007 1:36 PM
> To: Thomas Rademacher
> Cc: python-list at python.org
> Subject: Re: win32com problem: more than one instance
> Thomas Rademacher wrote:
> > Hello,
> > I start my script convert.py simultaneously in any
> dos-shells several
> > times. But I get every time the same solidworks instance.
> > I see in the proccess (task) manager only one
> solidworks.exe Therefore
> > I get for all simultaneous conversions the same output file.
> I *think* -- and I'm really hoping someone more knowledgeable
> can chip in here -- that it's down to the particular COM
> object implementation. ie Excel may choose to offer you
> separate instances (or whatever they're called) while
> SolidWorks may not.
More information about the Python-list