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.
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.