Menu

exe locked after second compile action

Camelot
2007-12-26
2012-09-26
  • Camelot

    Camelot - 2007-12-26

    Hello,
    I wrote a very simple "hello world!" code test.cpp. After first compile action, I run the test.exe produced and everything works fine. Then I modify the "hello world!" in "hello moon!" but when I try to compile the code again, the test.exe is locked (permission denied and access right problem) so ld is not able to overwrite the test.exe. If I try to launch the test.exe manually, it give me, of course, the same problem. I have to rename test.cpp into test1.cpp file to go on producing a test1.cpp. After a first good run, the problem happens again.
    I'm working under XP with the version 4.9.9.2 of dev. Could you help me?

    Camelot

     
    • Camelot

      Camelot - 2007-12-27

      Thank you cpns,
      you were perfectly right! Ii was Spybot-SD.
      Now I solved the problem. Thank you.

      Camelot

       
    • Wayne Keen

      Wayne Keen - 2007-12-26

      Most of the time that I have seen this, it has been the result of not shutting
      down the executable after it has been run. A running executable can not be compiled over.

      So,

      (1) Please copy and paste the code you are compiling and running

      and

      (2) Tell us exactly what you are doing after the program finishes, and exactly what happens.
      Remember, we are not looking over your shoulder, so you need to tell us as much as possible
      about what you see and do - don't overlook details like whether the display window closes.

      Wayne

       
    • cpns

      cpns - 2007-12-26

      This is caused by one of two problems:

      1) You have not closed teh earlier running program
      2) Some other problem we never got to teh bottom of.

      With respect to (2) some have suggested that it is caused by Spybot S&D's 'teatimer' feature, but it is I suppose possible that some other security application is causing the same problem.

      I think the last guy that had this problem I suggested he used an alternative tool and got some work done.

      I would suggest that you try using a project rather than building the source directly from the editor. Not because it will necessarily fix your problem, but because it is just a good idea in any case. You can of course change the output file name when using a project.

      Clifford

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.