WINAPI WinMain returns 0 but the process hangs about in Windows background processes

142 Views Asked by At

We have a suite of unit tests for our application, divided up into projects and individual executables, that are part of our build system. One of the executables has started hanging about even after completion which means it's holding onto some of our dlls and preventing other processes from modifying them (signing etc). When I debug the exe, I can see that it exits the WINAPI WinMain method, returning 0, the application then removes itself from the Apps section of the processes in task manager and appears in the Background Processes section, and the debugger doesn't close. I don't really know where to start with this one but what might be causing the process to hang about in the windows processes even though the WinMain function has returned successfully?

0

There are 0 best solutions below