Universal binary crashing on iMac (Core2Duo) system

HI,

I am trying to built a universal binary application using xcode 2.3 and sdl

framework…

The application works finely on the ppc… But when i try to run the

application on an iMac (core2Duo) system , the application is crashing at

randomly… But when i disable one cpu , the application is running

properly…

My application has a main thread and a helper thread…

Is there any way to schedule multiple threads in a single processor on
a dual core
system…

Valuable suggestion regarding this are most welcome…

Regards
Lijith

Hi,

I’m trying to add an GTK/GDK window to my application,
Does any one already done this?
I am able to create a Xwindow with a window id so that i can give
the window id to mplayer so it can run in a window in my app.
But i also want to play flash files in my window and so i guess i need a GDK
window.

Thanks in advance.
Serjan

Hello !

I’m trying to add an GTK/GDK window to my application,
Does any one already done this?
I am able to create a Xwindow with a window id so that i can give
the window id to mplayer so it can run in a window in my app.
But i also want to play flash files in my window and so i guess i need a GDK
window.

Sam Lantinga has done something like this :

http://www.libsdl.org/projects/gtk-demo/

CU

Is there any way to schedule multiple threads in a single processor on
a dual core
system…

It sounds like a race condition that will be reduced on a single
processor machine, but still be present…forcing processor affinity
would not fix your problem, it would just make it harder to track down.

Don’t call SDL functions from multiple threads. Other than that, you
should figure out where your race condition is.

–ryan.