[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
Re: [pygame] progress on camera module
On 28-jun-09, at 01:13, Tyler Laing wrote:
Hmm, the comment for gWorld says its a pointer, but thats a static
variable. Just an outdated comment?
It is a pointer, I took this from the API:
Defines a pointer to a structure that your application can use to
refer to an offscreen graphics world.
I have a segmentation fault in my code.
When I initializes the camera I call SGSetDataProc() that sets
mac_que_frame() as an recall function that is called everytime I need
to get a frame out of the ImageSequence. In this mac_que_frame()
function I call DecompressSequenceFrameS() and this produces an
segmentation fault.
I have lookt at it with gdb, and I think it is a problem with the data
pointer.
you can find the code with the error on github.com/ab3, and I have a
test script named test_fast.py.
to debug it just do
gdb python
> run test_fast.py
I have been struggling with this for some time, so I would really
appreciate if someone could help me out with this.
Grtz