Prof-Butts / xwa_ddraw_d3d11

Direct3D 11 implementation of DDraw.dll for XWA with VR support and New Shaders
MIT License
6 stars 4 forks source link

Exception when debugging due to file operations in dllmain #72

Open morallo opened 1 year ago

morallo commented 1 year ago

Calling DeleteAllTempZIPDirectories() when attaching the DLL in dllmain triggers an exception.

From what I have read, it's better not to run complex operations on DLL_PROCESS_ATTACH to dllmain because it's can cause a deadlock. There can only be one dllmain running at any time, so if any other DLL is loaded, the process will hang.