I got a very strange problem. I used a notebook computer installed with Win 10, and compiled a .exe file from a very simple .c file using Dev-C++. The .exe file was created on the Desktop, and I could run the .exe file -- once only. After running the .exe file, which ended successfully, attempting to run the .exe file again resulted in a permission error. I even could not delete or move the .exe file. I then right clicked the file, and found that I had no permission to view the file's permission!! Clicking the "as administrator" button did not work either.
I first thought it was Dev-C++'s problem, so I installed another compiler called dm, but the results were the same -- I compiled another .c program using the command prompt, then checked the permission, it was fine. Then I executed it once, and then checked the permission again. I was even not allowed to view the permissions again!!
I tried using a Microsoft account to login to the notebook, and also tried using a local account which had administrator rights to login, both got the same symptoms as above. What was actually the problem? Are there some kind of problems in the updates on Win 10 causing this issue? Because this problem did not happen a month ago, and the Windows update was set as automatic.