Py_Finalize() for Python 2.3 on Win32 causes exception

Harri Pesonen fuerte at sci.fi
Thu Oct 23 12:44:28 EDT 2003


Kari Hallfast wrote:
> Hi,
> I'm a C++ programmer and I have just recently decided to use Python as an
> embedded scripting language. I call Py_Initialize(), run a few scripts and
> call PyFinalize() which causes an unhandled exception. My C++ program is a
> debug version and I tried using the debug and release versions of the python
> libs and dlls with the same results. I uninstalled Python 2.3 and installed
> 2.2.3 and everything works fine. I'm either not doing someting right or this
> is a bug. I'm a complete newbie to Python so I don't really know what to do
> or where to report this? Advice?
> Thanks,
> Kari

Download the Python source code, compile the debug version, and use the 
debug dll and find out where you get that exception. I also had some odd 
exceptions in Py_Finalize at some point. I was doing something wrong but 
never found out what actually.

Harri





More information about the Python-list mailing list