User forums > Help
Permission Denied ; Code-Blocks making files read only
obidan:
Hello, I have been having this problem for a while but I think i have pinpointed what is wrong, i can't fix it though.
When trying to create a project, such as a "Hello World!" application , the first time running it the process works as intended.
After modifying it, for example to display ,,"Hello World! JUFHDUSF" i can no longer compile, as I am getting the error
--- Code: --- ld.exe||cannot open output file bin\Debug\bunaziualume.exe Permission denied|
||=== Build finished: 1 errors, 0 warnings ===|
--- End code ---
Going to the folder that the program is in, i notice it is Read-Only grayed out. If I try to modify this value very soon after I run the program it says I don't have permission to change it.
If I wait a while, it allows me to change the value but continues being grayed out after I do so if I click on the folder again.
I would also like to mention that after a while (10-15 minutes) if I try to run the modified program it works for some reason.
I really need help with this ,thank you!
zabzonk:
This is not a codeblocks issue - if you compile the code from the command line you will get the same problems. In my experience, it's an issue with your anti-virus and/or firewall software. Shutting them both down, rebooting and then restarting them will normally fix it. But as I said this is NOT a CB issue.
obidan:
I don't have an anti-virus and have disabled my firewall and rebooted my PC, it still doesn't work.
For some reason the file is read-only for about 3 minutes or so until it suddenly changes or i donno.
stahta01:
--- Quote from: obidan on April 14, 2012, 07:21:21 pm ---I don't have an anti-virus and have disabled my firewall and rebooted my PC, it still doesn't work.
For some reason the file is read-only for about 3 minutes or so until it suddenly changes or i donno.
--- End quote ---
Unlikely, it is more likely your exe is still running for a few minutes.
Tim S.
obidan:
And what would I be able to do in this case?
I run a Windows 7 64 Bit PC
Navigation
[0] Message Index
[#] Next page
Go to full version