Problems with devices

Hi,

I’m having my sdl application locked with some devices grabing problems

Sometimes everything goes fine, other it hangs and it doesnt do a thing.

When i break the program with ctr c i see messages of the kind:

Couldnt grab the device… pc speaker, keyboard, mouse, etc

Does any one knows what is this?

Many thx,

Nuno Santos