473,395 Members | 1,941 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

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
Jul 18 '05 #1
2 2311
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

Jul 18 '05 #2
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

Jul 18 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Pablo Yabo | last post by:
Hi, I embeded Python in a C++ application to support some scripts. I start it using Py_Initialize() and after using running the scripts I call Py_Finalize(). The problem that I experienced is that...
4
by: A. B., Khalid | last post by:
Hello all. This is to inform those interested in getting Python to compile in MinGW that the pyMinGW patch is now able to help compile both Python 2.3.4 Final and Python 2.4a3 and the resulting...
4
by: Chris P. | last post by:
I've been having a problem with PythonWin that seemed to start completely spontaneously and I don't even know where to START to find the answer. The only thing I can think of that marks the point...
11
by: Lonnie Princehouse | last post by:
>From the cmd shell on both Windows 2k and XP, I'm getting this weird syntax error in conjunction with the unbuffered flag. It works fine without -u. Has anyone else encountered it? This didn't...
0
by: Andrew Trevorrow | last post by:
Hi folks, I've only been using Python for a few weeks, so please be gentle. :) Lovely language by the way -- I really enjoying using it -- but I've struck a very nasty problem when running...
0
by: Kurt B. Kaiser | last post by:
Patch / Bug Summary ___________________ Patches : 378 open ( +3) / 3298 closed (+34) / 3676 total (+37) Bugs : 886 open (-24) / 5926 closed (+75) / 6812 total (+51) RFE : 224 open...
1
by: zaley | last post by:
Py_Finalize ERROR! In my C++ program ,python is embeded . I create one win thread to run embedded Python code . So at the begin of thread function I call "Py_Initialize" and at the end of...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.