[issue9785] _PyUnicode_New(), throw and memory problem

2010-09-06 Thread Trigve Siver
New submission from Trigve Siver trig...@gmail.com: I'm using C++ with python embeding. I'm creating a couple of unicode objects and then some exception is thrown. While handling exception I create othet unicode objects. Then when creating some unicode object crash occurs. The problem

[issue9785] _PyUnicode_New(), throw and memory problem

2010-09-06 Thread Trigve Siver
Trigve Siver trig...@gmail.com added the comment: I've tried to examine it in more depth. Setting the python exception isn't necessary, only throwing the C++ exception is needed for demonstrating the problem. Also sometimes the address is 6 bytes lower than should

[issue9785] _PyUnicode_New(), throw and memory problem

2010-09-06 Thread Trigve Siver
Trigve Siver trig...@gmail.com added the comment: Nevermind, I found out it was problem with ref count while using PyTuple_SetItem() -- resolution: - invalid status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org