When create Sprite outside SDL_TIMER_EVENT,
for example, SDL_MOUSEBUTTONDOWN, Kyra crashed frequently.
May I get your suggestion and clue for this? Thanks!
No, it is not. The scenario you describe will crash i consistently. There is no workaround in Kyra.
The workaround in the client is to post an event from the timer back to the main thread, and call Kyra from the main thread.
Hope that helps!