SDL icon indicating copy to clipboard operation
SDL copied to clipboard

Disable windows thread naming doesn't work

Open anchurcn opened this issue 1 month ago • 7 comments

The SDL_GetHint(SDL_HINT_WINDOWS_DISABLE_THREAD_NAMING); returns "1" still throw exception 0x406d1388 when I using pure managed .NET debugger launch the app. I set SDL_HINT_WINDOWS_DISABLE_THREAD_NAMING via environment variable.

Someone knows how to fix it? Thanks.

anchurcn avatar Nov 20 '25 11:11 anchurcn

The environment variables are the values of the hint macros, so you should set SDL_WINDOWS_DISABLE_THREAD_NAMING instead.

madebr avatar Nov 20 '25 11:11 madebr

Try this out.

Also please don't run binaries, randomly posted on forums.

edit Looks like GitHub flagged and removed this post themselves.

Image

madebr avatar Nov 20 '25 11:11 madebr

@madebr

Image

anchurcn avatar Nov 20 '25 11:11 anchurcn

@madebr His personal page is 404 now.

anchurcn avatar Nov 20 '25 11:11 anchurcn

@madebr Image

Did that fix your issue?

@madebr His personal page is 404 now.

Yup, we scared him away 🤣

madebr avatar Nov 20 '25 11:11 madebr

@madebr No. I have set both "SDL_WINDOWS_DISABLE_THREAD_NAMING", "SDL_HINT_WINDOWS_DISABLE_THREAD_NAMING" to "1" before I post the issue.

anchurcn avatar Nov 20 '25 12:11 anchurcn

docs/README-migration.md
849:* SDL_HINT_WINDOWS_DISABLE_THREAD_NAMING - SDL now properly handles the 0x406D1388 Exception if no debugger intercepts it, preventing its propagation.

(Perhaps that isn't true, though. But that hint is gone in SDL3.)

icculus avatar Nov 20 '25 20:11 icculus