[prev in list] [next in list] [prev in thread] [next in thread]
List: pykde
Subject: Re: [PyKDE] Win32 success! & Now SIP problems
From: "Phil Thompson" <phil () riverbankcomputing ! co ! uk>
Date: 2004-11-24 9:21:42
Message-ID: 8252.82.68.80.137.1101288102.squirrel () 82 ! 68 ! 80 ! 137
[Download RAW message or body]
>
> I finally got win32 success. It is a tricky bit, but its easy in
> retrospect.
>
>
>
> Now my issue is that the SIP dll can't stand to be entered twice by the
> program.
>
>
>
> For instance :
>
>
>
> Loop:
>
> Py_Initialize()
>
> PyRun_SimpleString('Import qt') #imports SIP
>
> Py_Finalize()
>
>
>
> On the 2nd time around the program crashes in SIP
>
>
>
> Is there anyway SIP can be fixed, or can I forcibly unload it?
SIP can't be fixed because it does some irreversible initialisation.
Taking Py_Initialize() and Py_Finalize() out of the loop should work. As
with any module, there is no problem with importing sip may times.
Phil
_______________________________________________
PyKDE mailing list PyKDE@mats.imk.fraunhofer.de
http://mats.imk.fraunhofer.de/mailman/listinfo/pykde
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic