We are currently migrating Bugzilla to GitHub issues.
Any changes made to the bug tracker now will be lost, so please do not post new bugs or make changes to them.
When we're done, all bug URLs will redirect to their equivalent location on the new bug tracker.

Bug 1150

Summary: SDL_WM_SetCaption() in timer cause crash
Product: SDL Reporter: yoch.melka
Component: timerAssignee: Sam Lantinga <slouken>
Status: RESOLVED INVALID QA Contact: Sam Lantinga <slouken>
Severity: normal    
Priority: P2    
Version: 1.2.14   
Hardware: x86   
OS: Linux   
Attachments: this program crash after some time

Description yoch.melka 2011-02-24 03:27:35 UTC
Created attachment 587 [details]
this program crash after some time

Hello,

I use a SDL_WM_SetCaption() function in timer, the program crashes after a while with the message:
XIO: fatal IO error 11 (Resource temporarily unavailable) on X server ":0.0"...

[translation robot]
Comment 1 Sam Lantinga 2011-02-24 08:03:43 UTC
The timers run in a separate thread, so it's not safe to call any video functions from them.  Instead you can post an event using SDL_PushEvent() and have your main thread do the change.
Comment 2 yoch.melka 2011-02-28 23:45:53 UTC
OK, thanks !