Attila Lendvai attila.lendvai@gmail.com wrote:
[this time to the list also]
CV_INLINE CvPoint cvPoint( int x, int y ) { CvPoint p;
p.x = x; p.y = y; return p;
}
it's been a while since i was fooling around with C... but 'p' is a local variable on the stack, and if you return its address, then it will point into nowhere when the C function's stack frame is unwound.
This is return by value, not address...
-- Daniel