Re: My C module crashes

2005-02-28 Thread Dima Dorfman
On 2005-02-28, Egil Moeller <[EMAIL PROTECTED]> wrote: > I've written a C-module for Python, and it works as intended, but > obviously does something wrong with its memmory management (refference > counting), as it causes Python to segfault now and then (randomly, > whey :S) Have you tried compili

Re: My C module crashes

2005-02-28 Thread John Machin
Egil Moeller wrote: > Hi! > > I've written a C-module for Python, and it works as intended, but > obviously does something wrong with its memmory management (refference > counting), as it causes Python to segfault now and then (randomly, > whey :S) > > The module source code is available at > http

Re: My C module crashes

2005-02-28 Thread Daniel Dittmar
Egil Moeller wrote: I've written a C-module for Python, and it works as intended, but obviously does something wrong with its memmory management (refference counting), as it causes Python to segfault now and then (randomly, whey :S) You can atry to use the Python function sys.getrefcount. Print the

My C module crashes

2005-02-28 Thread Egil Moeller
Hi! I've written a C-module for Python, and it works as intended, but obviously does something wrong with its memmory management (refference counting), as it causes Python to segfault now and then (randomly, whey :S) The module source code is available at http://grimoire.takeit.se/files/CReader.c