When I compile a C-Program with MinGW and I want to remove the exe-file it disappears. But when I hit F5 it is still there. Unlocker can’t find any handles and also can’t remove it. I can’t modify the permissions and can’t change the owner. After about 2 minutes the file gets removed. It also appears before the file was executed.
My System: Windows 7 Professional x86. My link line from makefile:
gcc -o main.exe main.o -lopengl32 -lglut32 -lglu32
How to solve this?
Okay, I still don’t know why the permissions are modified, but I found out it also happens with other (e.g. downloaded) .exe files. Solution: Reinstall Windows.
EDIT: Don’t know why, but I just had to reenable the Application Expirence Service and it worked. Don’t know why….