Python

Moderators: None (Apply to moderate this forum)
Number of threads: 400
Number of posts: 1055

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
Python embeding help Posted by subhan222 on 11 Jan 2010 at 10:53 AM
Hi,

I am trying to embed python in c++. everything is working fine apart from couple of issue.

what exactly i am doing is creating an API for C++ functions in my application to be accessible using python script.

When i run a script its runs fine and when i re-run the same script it throws memory dump

using openSuse 10.2 with built in python + python devel + Boost development libs

briefly what my script is doing in explained below in steps
- import a module which contains all the python interfacing functions
- create an object of a container which contains objects of another class
- get one of the object from the container (i believe this line is a issue) without this line script can run multiple time without throwing any error.


i.e.
import mylib

container = mylib.containerClass()
obj1 = container.at(1) # this is a bit of issue.

please let me know if anyone can help. Thanks

also if you need more info.

Subhan






 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.