[SDL] BUG in joystick/bsd/SDL_sysjoystick.c

SUGIMOTO Sadahiro sugimoto at garlic.q.t.u-tokyo.ac.jp
Mon Sep 16 20:57:00 PDT 2002


So, i'm new in SDL Programming ...

I try to get window attributes of SDL window like this ..

----------------------
if(SDL_GetWMInfo(&info))  {
  Window window;
  Display *display;
  info.info.x11.lock_func();
  parent = info.info.x11.window;
  display = info.info.x11.display;
  XGetWindowAttributes(display, window,&pattr);
  info.info.x11.unlock_func();
}

and the SDL Error is :

Fatal signal: Segmentation Fault (SDL Parachute Deployed) ....

the SIGSEV signal is sent when XGetWindowAttributes is called ...

thanks.




More information about the SDL mailing list