From: SourceForge.net <no...@so...> - 2012-05-18 02:57:06
|
Bugs item #1694806, was opened at 2007-04-04 23:43 Message generated for change (Settings changed) made by olly You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=101645&aid=1694806&group_id=1645 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. >Category: python Group: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: Maks N. Polunin (maks_polunin) Assigned to: Nobody/Anonymous (nobody) Summary: Python gets deleted object when storing it passed from c++ Initial Comment: I'm not sure if it is a bug, but it's confusing anyway. The problem appears when I create object in C++ and pass it into python callback. Python code creates reference to it and when callback is finished, py reference points to deleted object. Is it possible someway to track if there are any links from python after calling callback and replace wrapped pointer to c++ object w/ pointer to copy of it, so python will not deal w/ dead object? May be user should be just warned in such case? is there some more beautiful solution? Please advise. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=101645&aid=1694806&group_id=1645 |