<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
  <channel>
    <title>'Python embeding help' Thread RSS Feed</title>
    <link>http://www.programmersheaven.com/</link>
    <description>Contains the latest posts from the thread 'Python embeding help' posted on the 'Python' forum at Programmer's Heaven.</description>
    <language>en</language>
    <copyright>Copyright 2012 Programmers Heaven</copyright>
    <pubDate>Wed, 23 May 2012 23:49:54 -0700</pubDate>
    <lastBuildDate>Wed, 23 May 2012 23:49:54 -0700</lastBuildDate>
    <generator>Argotic Syndication Framework 2007.3.0.1, http://www.codeplex.com/Argotic</generator>
    <docs>http://www.rssboard.org/rss-specification</docs>
    <ttl>360</ttl>
    <image>
      <url>http://www.programmersheaven.com/images/ph.gif</url>
      <title>Programmers Heaven</title>
      <link>http://www.programmersheaven.com/</link>
      <width>88</width>
      <height>31</height>
    </image>
    <item>
      <title>Python embeding help</title>
      <link>http://www.programmersheaven.com/mb/python/411798/411798/python-embeding-help/</link>
      <description>Hi,&lt;br /&gt;
&lt;br /&gt;
I am trying to embed python in c++. everything is working fine apart from couple of issue.&lt;br /&gt;
&lt;br /&gt;
what exactly i am doing is creating an API for C++ functions in my application to be accessible using python script.&lt;br /&gt;
&lt;br /&gt;
When i run a script  its runs fine and when i re-run the same script it throws memory dump&lt;br /&gt;
&lt;br /&gt;
using openSuse 10.2 with built in python + python devel + Boost development libs&lt;br /&gt;
&lt;br /&gt;
briefly what my script is doing in explained below in steps&lt;br /&gt;
- import a module which contains all the python interfacing functions&lt;br /&gt;
- create an object of a container which contains objects of another class&lt;br /&gt;
- 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.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
i.e.&lt;br /&gt;
import mylib&lt;br /&gt;
&lt;br /&gt;
container = mylib.containerClass()&lt;br /&gt;
obj1 = container.at(1)   # this is a bit of issue.&lt;br /&gt;
&lt;br /&gt;
please let me know if anyone can help. Thanks&lt;br /&gt;
&lt;br /&gt;
also if you need more info.&lt;br /&gt;
&lt;br /&gt;
Subhan&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/python/411798/411798/python-embeding-help/</guid>
      <pubDate>Mon, 11 Jan 2010 10:53:19 -0700</pubDate>
      <category>Python</category>
    </item>
  </channel>
</rss>
