wow, python.net, pythoncom and py2exe. Just need to find a way to import
IronPython and use something from that too... ;)
-Brian
On 1/3/08 10:55 AM, "Maksim Kozyarchuk"
<[EMAIL PROTECTED]> wrote:
> We found that the following code as the first line of your python file puts
> you into the STA.
>
We found that the following code as the first line of your python file puts
you into the STA.
import pythoncom
pythoncom.CoInitialize()
Maksim
On 1/3/08 9:44 AM, "Brian Lloyd" <[EMAIL PROTECTED]> wrote:
> Hi Sebastian - when you talk about it 'running perfectly with
> the normal python.exe', I
Hi Sebastian - when you talk about it 'running perfectly with
the normal python.exe', I assume you mean the one that comes
with python.net.
That exe is actually written in C# and explicitly sets the
apartment mode to STA.
I suspect the problem is that py2exe will create its own form
of exe which
Dear pythoneers,
i want to deliver my program, which runs perfectly 'uncompiled', as an
exe file to customers.
The problem: i have to use an activeX component in a windows-form, and
com-components can only be created in single-thread apartments.
But when i use py2exe to compile it, the applica