On 10/3/06, Chris Mellon <[EMAIL PROTECTED]> wrote: > Not a ctypes expert but I can pretty much guaranteee that Python won't > correctly release that memory by itself. Are you sure that description > is actually a string object?
I also think, that Python won't release the memory, and the returned string isn't helpful either. :) > If it doesn't, then you can use a more literal translation of the C > code, and use a c_void_p instead, using ctypes.string_at(description) > to get a string out of the buffer. This works and is a great tip! Thanks a lot. Best regards, Oliver -- Oliver Andrich <[EMAIL PROTECTED]> --- http://roughbook.de/ -- http://mail.python.org/mailman/listinfo/python-list