Any chance that cvQueryFrame() returns an image that you should not > free?? > > that's exactly it (i feel really dumb for having missed it)
> > the first img is likely garbage-collected. Perhaps your > Image.__dealloc__ is not doing the right thing in this case? would you suggest setting a private C-attribute (flag) that indicates the image was created by this (or any other) function where i'm no supposed to explicity release it, then check that flag in __dealloc__ and proceed accordingly? This would be my knee jerk reaction around the problem, but maybe you have a more elegant solution. Chris
_______________________________________________ Cython-dev mailing list [email protected] http://codespeak.net/mailman/listinfo/cython-dev
