Author Topic: SDL demo  (Read 3564 times)

ced

  • Full Member
  • ***
  • Posts: 225
    • View Profile
    • http://
SDL demo
« 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;

}
SL-5600, kernel 2.6.16 + GPE from .dev
Ethernet Socket LP-E
Viking 256M SD

ced

  • Full Member
  • ***
  • Posts: 225
    • View Profile
    • http://
SDL demo
« Reply #1 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.
SL-5600, kernel 2.6.16 + GPE from .dev
Ethernet Socket LP-E
Viking 256M SD

Mickeyl

  • Hero Member
  • *****
  • Posts: 1495
    • View Profile
    • http://www.Vanille.de
SDL demo
« Reply #2 on: June 08, 2004, 07:02:54 am »
Where\'s it crashing? Tried acquiring a backtrace with gdb ?
Cheers,

Michael 'Mickey' Lauer | Embedded Linux Freelancer | www.Vanille-Media.de
Consider donating, if you like the software I contribute to.

ced

  • Full Member
  • ***
  • Posts: 225
    • View Profile
    • http://
SDL demo
« Reply #3 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)...
SL-5600, kernel 2.6.16 + GPE from .dev
Ethernet Socket LP-E
Viking 256M SD

Ashitaka

  • Jr. Member
  • **
  • Posts: 58
    • View Profile
    • http://leiber.free.fr
SDL demo
« Reply #4 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
Zaurus SL-C760, SL-C860 and SL-6000
Sharp ROM 1.20 JP and pdaXrom RC8
512 MB SD Card, other memory, wireless and ethernet CF cards
www.nautilus6.org/operation/zaurus.html

ced

  • Full Member
  • ***
  • Posts: 225
    • View Profile
    • http://
SDL demo
« Reply #5 on: June 09, 2004, 02:30:26 am »
Ashitaka --] check your email...
SL-5600, kernel 2.6.16 + GPE from .dev
Ethernet Socket LP-E
Viking 256M SD