Yes, that worked. I "protected" the variable which I did not want to get freed. I incremented reference for that variable & it started working.
Thanks for all your guidance. On May 3, 5:23 am, "Gabriel Genellina" <[EMAIL PROTECTED]> wrote: > Python will do nothing with the pointer inside a PyCObject - unless you > want to, and pass a cleanup function as the second argument to the > PyCObject constructor. > > -- > Gabriel Genellina- Hide quoted text - > > - Show quoted text - -- http://mail.python.org/mailman/listinfo/python-list