[issue9785] _PyUnicode_New(), throw and memory problem

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

[issue9785] _PyUnicode_New(), throw and memory problem

2010-09-06 Thread Trigve Siver
Trigve Siver 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&

[issue9785] _PyUnicode_New(), throw and memory problem

2010-09-06 Thread Trigve Siver
New submission from Trigve Siver : 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 is in _PyU