SDL_PeepThread() first argument confusion / newbie

I’m using SDL_PeepThread() in my program. When I use the ampersand operator to
send it the first argument, i.e. (&events, …), it works fine. But when I send
it a pointer for an SDL_Event, i.e. (p_events, …), I get a memory segmentation
fault and the program crashes! Could someone explain why, or at least show me
something else that would explain why? Thanks in advance for the help!

Crono5788 <crono5788 gmail.com> writes:

And every time I said SDL_PeepThread(), I meant to say SDL_PeepEvents(). bangs
head against desk

A bit of code would help. Are you allocating the memory for the
SDL_Event from the heap or setting it equal to something allocated off
the stack?On Sat, 14 Apr 2007 13:52:52 +0000 (UTC) Crono5788 wrote:

Crono5788 <crono5788 gmail.com> writes:

And every time I said SDL_PeepThread(), I meant to say
SDL_PeepEvents(). bangs head against desk


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org