Menu

Problem with modified files after execution

Anonymous
2008-02-12
2012-09-26
  • Anonymous

    Anonymous - 2008-02-12

    I have three opened files in Dev-C++: file.cpp, file.in, file.out. The .cpp is the program I'm working on, the .in contains the input data and .out contains the output. Normally, after execution, if a opened file has been modified by an external application, a message pops up saying something like "The .out file has been modified, would you like to reopen it?", but on my computer this usually doesn't happen. Most of the time no message appears, but there are several (random) times when a message does appear and lets me reload the .out file like it should. On some other rare occasions, besides the message popping up, a random opened program window is selected/focused, for example a Yahoo! Messenger chat window (just as if I had pressed alt+tab).

    I've tried closing all of my other opened programs/processes, disabling my antivirus and firewall but no luck. I have no clue to what the problem might be. Any ideas? And, by the way, is there a command to manually reopen a file in Dev-C++, except File->Close File->Reopen?

    I'm using Dev-C++ 4.9.9.2 on Windows XP Professional (and it's up-to-date). A simple program that modifies a file without a message popping up after execution:

    include<stdio.h>

    int main()
    {
    int n;
    freopen("file.in","r",stdin);
    freopen("file.out","w",stdout);

    scanf(&quot;%d&quot;,&amp;n);   
    printf(&quot;%d&quot;,n);
    
    fclose(stdin);
    fclose(stdout);
    return 0;
    

    }

    The program compiles successfully and the .out file is really being modified (it's not misplaced or anything).
    Thank you for your time.

     
    • BiT

      BiT - 2008-02-13

      well honestly if stuff is "just happening" the first thing I would do is run a virus scan

      also you could be like me and eat at the computer in which case a good can of compressed air is needed to get the sunflower seeds out..... pain in the arse when something gets stuck under the alt key.

       
      • Anonymous

        Anonymous - 2008-02-13

        I can assure you I don't have any virus or spyware on my computer nor food under my alt key. :)
        I was hoping someone else had this issue and found a way to solve it. Other programs like Notepad++ run fine and display that message box when a opened file has been modified by another program. I also tried Dev-C++ version 4.1 but I have the same issue.

         

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.