[dev-c++] Won't run any programs at all.

Samael88

Evil always finds a way
Reaction score
181
My dev c++ has gone completely insane or something.

I can compile my programs, no problem there.
But when I press run, nothing happens.
When I press compile and run, it compiles but does not run.
I have to go to the directory where it puts the output files and run it from there.

Anyone here got any ideas of what can be causing this?
Solutions, please?

I have tried to reinstall it once already and I can do it again if nessecary:(

+REP to helpers:thup:
 

Samael88

Evil always finds a way
Reaction score
181
Ok, this is rare, but. BUMP:p

I still have not found any solution to this, can't find anything in the options of dev-c++.

This is not a window that blinks and show, this is programs that have worked fine before.

I have tried reinstalling dev-c++, but that did not do any good:(

Please help me with this if you can!

I am currently doing this-->:banghead:
 

Weegee

Go Weegee!
Reaction score
102
get Visual C++ or maybe a different compiler? Not to sure I got rid of dev-c++ eons ago :p
 

Samael88

Evil always finds a way
Reaction score
181
get Visual C++ or maybe a different compiler? Not to sure I got rid of dev-c++ eons ago :p

That is out of the question. I have developing a game with dev-c++ and I want to end it with dev-c++ aswell:)

I have checked the firewall, it's not that doing it:(
I have tried reinstalling it 3times now and that is not a solution.
Anyone got a solution to this?
 

Weegee

Go Weegee!
Reaction score
102
maybe u damaged something on ur computer that dev-c++ uses or maybe (im just guessing wildly here but) you have a virus??? I dont know lol im a clueless idiot really :p
 

Samuraid

Advisor
Reaction score
81
Have you tried resetting the Dev-CPP settings to default?

You could try removing the Dev-CPP settings files in your user account (make a back-up copy of them first though), which will cause Dev-CPP to load with default options the next time around.

The settings files are stored in:
C:\Documents and Settings\<username>\Application Data\Dev-Cpp\

or in vista\windows7:
C:\Users\<username>\AppData\Roaming\Dev-Cpp\
 

Samael88

Evil always finds a way
Reaction score
181
It's not a virus. I went thru a thorough search for viruses yesterday.
I ran Nod, I ran MBAM, and I went thru the computer manually, checking every folder and the entire registry, I do this once a month to make sure that the computer is virus free. Hence I know every thing that should be and should not be on it, both on the discs and in the registry;)

Those files are removed during the uninstall of the program:(
I even tried checking the box that says "Remove all previous configuration data" during the installation:(
 

_whelp

New Member
Reaction score
54
It actually runs, but it is instantly ended, because it needs to be paused.

Try this:
Code:
//Put this at the end of the main function
cout << "Press anything to exit";
cin.sync();
cin.get();
 

Samael88

Evil always finds a way
Reaction score
181
Thanks _whelp. That did not help at all, since I am not that new to c++:eek:
If it had been that I would have found the answer with google, but beacuse there are to many beginners who have asked that question in forums that is the only one that comes up:(

There does not seem to be any problems with dev,
I think that I have checked all the settings for dev.
It is not my anti-virus programs that causes it.
I have tried reinstalling dev a few times with different settings,
I have tried different versions of dev.
I have even been in the system registry and into windows to make a real clean sweap when deleting dev once, to make sure that I got all files affiliated with the program:(

If anyone got something that could help, or have any idea of what could be causing this, that would be really helpful. I really don't want to do a format C: just beacuse of this:(
 

DBZ-123

TH.net Regular
Reaction score
19
Have you tried running as administrator?

Maybe get zip folder of the program then an exe
 

Samael88

Evil always finds a way
Reaction score
181
@Slapshot: I would if it was not for the fact that it compiles the programs, I can go into the folder where it compiles them to and run the programs manually and they work fine, it's just that the compiler can't run them automatically as it should when pressing "compile and run":(

@DBZ: I am admin on my own comp, so that's not an issue:p

Thanks for trying this far tho people:)
Has anyone had a similiar occurance with other programs or something before?
 

Weegee

Go Weegee!
Reaction score
102
yep I have with Dev-c++. Sadly though I can only say that I was playing around with making code far back then. Thats why I gave my answer. Have you gone to the website and looked for like some forums for them to help you on this?
 

Samael88

Evil always finds a way
Reaction score
181
yep I have with Dev-c++. Sadly though I can only say that I was playing around with making code far back then. Thats why I gave my answer. Have you gone to the website and looked for like some forums for them to help you on this?

I searched about two weeks ago when the problem first appeared. I have not tried doing this:

1. Uninstall the program.
2. Reboot comp.
3. Install it again.

I think that this can be a plausable solution, since there could be some temporary files hanging around somewhere from the prevsious installation that I have missed and perhaps a reboot will get rid of them aswell.
I will try this and report check their forums again, and perhaps make another berserk-googling about it:p Then i will report back if I found a solution.

This is by far the most annoying problem I have ever been up against:nuts:
 
Reaction score
341
So are you sure that it isn't running and closing instantly.

Try opening your task manager and go to the processes tab, if you see your program popup and close instantly, then that is the problem.

I'm sure you know the things that cause this, so if this is the problem you should know what to look for. :thup:
 

Samael88

Evil always finds a way
Reaction score
181
This is one of the programs I have used to check it.

If that closes immediately then I am the pope of everything:D

It has also worked fine before, this program has been tested on several different comps, it is just my comp that is really F***ed up:nuts:

I can use my programs by compiling them and going into the folder where dev outputs the executable file and start it "manually". It just won't run from dev:(

There is nothing in any other forum about this, which means that it either is a really new problem or it is really easy to fix and I just miss something, or it is just me comp that is stupid:nuts:

Code:
#include <iostream.h>
#include <string.h>
#include <conio.h>
#include <fstream.h>

int a = 0, b = 0;
std::string c = "a";

void load()
{
   ifstream myfile("test.txt");
   if (myfile.is_open())
     {
         while(! myfile.eof())
           {
               myfile>>a;
               myfile>>b;
               myfile>>c;
           }
        myfile.close();
     }
     
}

void save()
{
     ofstream myfile ("test.txt", ios::trunc);
     if (myfile.is_open())
       {
           myfile<<a<<"\n";
           myfile<<b<<"\n";
           myfile<<c<<"\n";
           myfile.close();               
       }
       else cout<<"Unable to open file!";    
}

int main()
{
    
    int option;
    bool quit = false;
    
    
    while (quit == false)
    {
    
    cout<<"\nChange the value for A:      1\n";
    cout<<"Change the value for B:      2\n";
    cout<<"Change the value for C:      3\n";
    cout<<"Save the values:             4\n";
    cout<<"Load the old values:         5\n";
    cout<<"Show all values:             6\n";
    cout<<"If you want to quit:         7\n";
    cout<<"Enter an option:";
    cin>>option;
    
    if (option == 1)
      {
          cout<<"\nOld value for A is: "<<a;     
          cout<<"\nInput the new value for A(an integer)";
          cin>>a;        
      };
      
    if (option == 2)
      {
          cout<<"\nOld value for B is: "<<b;       
          cout<<"\nInput the new value for B(an integer)";
          cin>>b;        
      };
      
    if (option == 3)
      {
          cout<<"\nOld value for C is: "<<c;       
          cout<<"\nInput the new value for C(an string)";
          cin>>c;        
      }
      
    if (option == 4)
      {
          save();
      }  
    if (option == 5)
      {
          load();
      } 
      
    if (option == 6)
      {
          cout<<"The value of A is currently: "<<a;
          cout<<"\nThe value of B is currently: "<<b;
          cout<<"\nThe value of C is currently: "<<c;
      }
     
    if (option == 7)
      {
          quit=true;        
      }

    }
    
    return 0;         
}
 

LocalDude

New Member
Reaction score
4
Hi i tested the code and it worked fin no errors nothin except a black comandpromt with a few diferent choises:thup:.
 

Samael88

Evil always finds a way
Reaction score
181
Hi i tested the code and it worked fin no errors nothin except a black comandpromt with a few diferent choises:thup:.

Thank you:thup:

That proves it, there is nothing wrong with my code, it is my dev that has gone wacko:nuts:

Edit: Anyone got any idea at all what could be causing this and/or how to fix it?
 

Samael88

Evil always finds a way
Reaction score
181
maybe DL a different version of Dev? or has someone said that already?

The thing is, that LocalDude is a friend of mine, and the dev he has installed is the same version as me. If I remember it correctly he even has installed it from the same file that I have, I think that I gave him that a while ago.

I have tried two different versions of dev and I tried redownloading it, but with no different in the results.

I have tried to turn of my firewalls and antivirus protections with the thought that they could be the ones causing it, but no changes to the result there aswell:(

Could XP have a function or something that can cause this?
Any other program that may cause this?
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top