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 - SDL_WM_SetCaption() in timer cause crash
Summary: SDL_WM_SetCaption() in timer cause crash
Status: RESOLVED INVALID
Alias: None
Product: SDL
Classification: Unclassified
Component: timer (show other bugs)
Version: 1.2.14
Hardware: x86 Linux
: P2 normal
Assignee: Sam Lantinga
QA Contact: Sam Lantinga
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-02-24 03:27 UTC by yoch.melka
Modified: 2011-02-28 23:45 UTC (History)
0 users

See Also:


Attachments
this program crash after some time (1.13 KB, text/x-csrc)
2011-02-24 03:27 UTC, yoch.melka
Details

Note You need to log in before you can comment on or make changes to this bug.
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 !