#1149·mactype

HookChildProcesses stops working after the PC has been on for a while

Author: mutptrCreated Sep 27, 2026Updated Sep 28, 2026

Hi, thanks for MacType!

Since updating to 2025.6.9, MacType stops working on newly opened apps (Settings, Notepad, Calculator, etc.) once the PC has been on for a while. Everything is fine right after a reboot. It never happened on 2024.9.14.

In those apps MacType64.dll does get loaded, but only after DWrite/D2D are already set up, so nothing gets rendered.

I dug into it a bit. The 2025.6.9 bootstrap (MacType64.dll 1.2025.609.1) links EasyHook statically, and its DllMain calls DisableThreadLibraryCalls(), passing only DLL_PROCESS_ATTACH on to EasyHook. So EasyHook never gets DLL_THREAD_DETACH.

That's a problem because EasyHook only tracks 128 threads and frees a slot only when a thread detaches. Once all slots are taken, LhBarrierIntro returns FALSE and the CreateProcessInternalW hook just gets skipped.