From pykde Wed Nov 24 09:21:42 2004 From: "Phil Thompson" Date: Wed, 24 Nov 2004 09:21:42 +0000 To: pykde Subject: Re: [PyKDE] Win32 success! & Now SIP problems Message-Id: <8252.82.68.80.137.1101288102.squirrel () 82 ! 68 ! 80 ! 137> X-MARC-Message: https://marc.info/?l=pykde&m=110128816404535 > > 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