OESF Portables Forum

Everything Else => Zaurus - Everything Development => Distros, Development, and Model Specific Forums => Archived Forums => Qt/Qtopia => Topic started by: ced on May 24, 2004, 08:33:33 am

Title: SDL demo
Post by: ced on May 24, 2004, 08:33:33 am
I\'ve wrote a demo using the SDL library (1.2.7). The demo run perfectly via ssh. But if I try to run it from an icon or from the console then it freeze when the demo exists.
I can replicate the problem via ssh if I set the following environment:
Code: [Select]
export QWS_DISPLAY="Transformed:Rot180:0"

export QTDIR=/home/QtPalmtop


Do you think is something with my demo (dodgy pointer or something) or is it something with qtopia?

The main method look like this and I can see the last \"printf\":

Code: [Select]
int main(int argc, char ** argv) {

  

  // demo code

  ...

  ...

  

  printf("exit!!!!");

  

  return 0;

}
Title: SDL demo
Post by: ced on June 08, 2004, 07:01:41 am
[bump]

I would like to run my demo from the desktop (via an icon).
I can provide the source code (only 400 lines) if someone is willing to look my \"crash on exit\" issue.
Title: SDL demo
Post by: Mickeyl on June 08, 2004, 07:02:54 am
Where\'s it crashing? Tried acquiring a backtrace with gdb ?
Title: SDL demo
Post by: ced on June 08, 2004, 07:10:25 am
the version of gdb from ZSI doesn\'t like compiled code with pthread (which the SDL library is)...
Title: SDL demo
Post by: Ashitaka on June 08, 2004, 10:36:00 pm
I am interested by the source code of the demo, even if I\'m not sure I can solve your problem
francois.leiber@laposte.net
Title: SDL demo
Post by: ced on June 09, 2004, 02:30:26 am
Ashitaka --] check your email...