It's probably cleaning up objects before exiting. If your objects have
__del__ methods (like all mine do), then it's probably running into some
kind of issue interacting with the free code in your C code.
In my experience, the stack tracebacks you get from python when you
crash with ctypes code loaded are rarely useful, and often deceptive.
I do something VERY similar with my C code -- most of my tests are in
python. It's nearly always painful when I get a crash. In the case of
my particular code, I verify that all the C objects that my code creates
are free at the end of every test.
I wish I knew how to make the pain go away - but the only cure I came
out with was having debugging I can turn on in the C code that helps me
localize the issue to some smallish amount of code.
> --
>
> ---
> You received this message because you are subscribed to the Google
> Groups "Ctypesgen Development List" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to
ctypesgen+...@googlegroups.com.
> For more options, visit
https://groups.google.com/groups/opt_out.
>
>