how do i make exteranl module work under debug session?

W

Wen

Hi guys! I'm writing a small DLL thingy that requieres the use of loading
the Python
interpreter and executing a series of scripts. I have generated an interface
to my
dll with SWIG and put it in. It works like this:

1) a small .exe loads the .dll and calls the main init() function
2) the dll starts up some services, among them Py_Initialize ()
3) i tell python to execute: execfile("kikura.py") (kikura.py is the file
that SWIG
generates for the shadow classes)

All this works in the release version, but in the debug version i get this
error
message along with an assert failure: Fatal Python error: Interpreter not
initialized
(version mismatch?)

Now, this might due to a fault of mine, but... The thing is that the windows
installer of python didn't come with debug libraries or .dll, so i
downloaded the
python source, and compiled those, and am using those for the debug, but the
original
instalation ones for release version.

Can anyone help? Thanx
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,768
Messages
2,569,574
Members
45,051
Latest member
CarleyMcCr

Latest Threads

Top