Py_Finalize() for Python 2.3 on Win32 causes exception

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Kari Hallfast

    Py_Finalize() for Python 2.3 on Win32 causes exception

    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


  • Werner Schiendl

    #2
    Re: Py_Finalize() for Python 2.3 on Win32 causes exception

    Hi,

    Kari Hallfast wrote:

    -- snip --
    [color=blue]
    > I'm a complete newbie to Python so I don't really know what to do
    > or where to report this? Advice?[/color]

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

    best regards

    Werner

    Comment

    • Harri Pesonen

      #3
      Re: Py_Finalize() for Python 2.3 on Win32 causes exception

      Kari Hallfast wrote:[color=blue]
      > 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[/color]

      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

      Comment

      Working...