# SDL\_CreateWindow with multithread, it crashed

**URL:** <https://discourse.libsdl.org/t/sdl-createwindow-with-multithread-it-crashed/27904>\
**Category:** SDL Development\
**Created:** [July 17, 2020, 1:42am UTC](https://discourse.libsdl.org/t/sdl-createwindow-with-multithread-it-crashed/27904 "2020-07-17T01:42:11Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![shizhu](https://discourse.libsdl.org/letter_avatar_proxy/v4/letter/s/e79b87/32.png) [@shizhu](https://discourse.libsdl.org/u/shizhu)\
**Post date:** [July 17, 2020, 1:42am UTC](https://discourse.libsdl.org/t/sdl-createwindow-with-multithread-it-crashed/27904/1 "2020-07-17T01:42:11Z")

</div>

SDL\_CreateWindow is in the thread, when multithread created, app is creashed

---

<div class="post-metadata">

**Author:** ![janm](https://discourse.libsdl.org/letter_avatar_proxy/v4/letter/j/a9a28c/32.png) [@janm](https://discourse.libsdl.org/u/janm)\
**Post date:** [July 17, 2020, 9:39am UTC](https://discourse.libsdl.org/t/sdl-createwindow-with-multithread-it-crashed/27904/2 "2020-07-17T09:39:20Z")

</div>

From this page [http://wiki.libsdl.org/CategoryThread](http://wiki.libsdl.org/CategoryThread):

![{i}](http://wiki.libsdl.org/moin_static198/fixedleft/img/icon-info.png "{i}")_NOTE_ : You should not expect to be able to create a window, render, or receive events on any thread other than the main one. For platform-specific exceptions or complicated options ask on the [forums/mailing list](https://discourse.libsdl.org/).
