Py_Finalize() for Python 2.3 on Win32 causes exception

K

Kari Hallfast

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
 
W

Werner Schiendl

Hi,

Kari Hallfast wrote:

-- snip --
I'm a complete newbie to Python so I don't really know what to do
or where to report this? Advice?

I'd recommend to post the smallest snippet of code which reproduces the
behaviour - the group comp.lang.python is the right place for it IMHO.

best regards

Werner
 
H

Harri Pesonen

Kari said:
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
 

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,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top