GIDForums  

Go Back   GIDForums > Computer Programming Forums > C++ Forum
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
 
Thread Tools Search this Thread Rate Thread
  #1  
Old 16-Jul-2007, 22:30
smedly11 smedly11 is offline
New Member
 
Join Date: Jul 2007
Posts: 2
smedly11 is on a distinguished road

Permission denied when compiling more than once.


Just starting to fool around with this Bloodshed Dev C++ IDE after not useing it in a long time. I havent changed systems, nor anything that I can think of, but I may have changed some option in the IDE way back when, but I cant remember doing so.

Experience: I was just learning the basics, but I think I forget everything I learned.

Problem is this. When I use the compile and run button once, it works, I can get my console app come up, the code runs as expected, and I can run it as many times as I like. Sounds hunky dorey right? Untill I hit the compile button a second time, then I get this message that says.

Permission denied
Id returned 1 exit status
[Build Error] ["permission] Error 1

It doesnt matter how simple the code is by the way, it happens in all my projects new and old. It happened in this for example.

CPP / C++ / C Code:

#include <cstdlib>
#include <iostream>

using namespace std;

int main(int argc, char *argv[])
{
    
    cout << "problem \n\n";
    
    system("PAUSE");
    return EXIT_SUCCESS;
}


After this happens, I can no longer compile the code or run it. Unless I reboot my computer. I know I used to be able to compile and run the code as many times as I liked. What did I do to cause this?
  #2  
Old 17-Jul-2007, 12:42
smedly11 smedly11 is offline
New Member
 
Join Date: Jul 2007
Posts: 2
smedly11 is on a distinguished road

Re: Permission denied when compileing more than once.


Ok, I figured it out. Teatimer.exe (from spybot antispyware program) was the culprit. I dont know why but after compileing any program the second time, spybot was blocking the path.

Still though, Iv used spybot resident long before I used Bloodshed Dev C++, So I still must have changed some option in the IDE to cause this. Or else maybe a recent Spybot update brought this into effect. Any ideas what option I might have changed if anything? If not, then I might just have to get used to closeing Spybot resident before useing the IDE. But the curiosity of what has been changed is killing me now more than anything.
  #3  
Old 12-Oct-2007, 21:59
Buri13 Buri13 is offline
New Member
 
Join Date: Oct 2007
Location: ONT, Canada
Posts: 8
Buri13 is on a distinguished road

Re: Permission denied when compileing more than once.


I had the EXACT same problem as you, and yes I also you SS&D, but I figured out if you print something without using an output stream (printf) and compile that, you cant then delete the printed output and keep compiling your program like normal.
  #4  
Old 13-Oct-2007, 09:15
TurboPT's Avatar
TurboPT TurboPT is offline
Regular Member
 
Join Date: Feb 2006
Location: Atlanta, GA
Posts: 958
TurboPT is a jewel in the roughTurboPT is a jewel in the roughTurboPT is a jewel in the rough

Re: Permission denied when compileing more than once.


Did that help the problem, Buri13?

That's a good one, smedly11, I completely forgot about Spybot's resident app. (not thought about much, for rarely does it pose problems)

The Spybot resident app. did change somewhere along the way in one of their updates, for the resident app has [for me, anyway] prevented window's update from functioning normally...and there were a couple of other instances [although not for Dev-C++, which I don't have] where I had to disable the resident before proceeding.

So, for others that have Spybot, and experience 'strange' issues, try disabling the "Spybot-SD Resident" app. first. (in the system tray) -- Actually, there is not a 'disable' option -- just exit.
__________________
Use the force...read the source!!
WYCIWYG -- what you code is what you get!
 
 

Recent GIDBlogObservations of Iraq by crystalattice

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Permission denied: ap_proxy: couldn't release the lock com2com Apache Web Server Forum 0 25-Mar-2006 10:23
Showing Error as Permission Denied kazim123 Apache Web Server Forum 0 03-Aug-2005 04:32
Uploading error: permission problems dmadd9 MySQL / PHP Forum 1 23-Apr-2005 14:56
access denied Zurke Apache Web Server Forum 0 13-Feb-2005 11:35
win xp service pack 2 folder access denied Hood Computer Software Forum - Windows 4 01-Feb-2005 15:28

Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The

All times are GMT -6. The time now is 15:56.


vBulletin, Copyright © 2000 - 2008, Jelsoft Enterprises Ltd.