[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.
  • Varine Varine:
    How can you tell the difference between real traffic and indexing or AI generation bots?
  • The Helper The Helper:
    The bots will show up as users online in the forum software but they do not show up in my stats tracking. I am sure there are bots in the stats but the way alot of the bots treat the site do not show up on the stats
  • Varine Varine:
    I want to build a filtration system for my 3d printer, and that shit is so much more complicated than I thought it would be
  • Varine Varine:
    Apparently ABS emits styrene particulates which can be like .2 micrometers, which idk if the VOC detectors I have can even catch that
  • Varine Varine:
    Anyway I need to get some of those sensors and two air pressure sensors installed before an after the filters, which I need to figure out how to calculate the necessary pressure for and I have yet to find anything that tells me how to actually do that, just the cfm ratings
  • Varine Varine:
    And then I have to set up an arduino board to read those sensors, which I also don't know very much about but I have a whole bunch of crash course things for that
  • Varine Varine:
    These sensors are also a lot more than I thought they would be. Like 5 to 10 each, idk why but I assumed they would be like 2 dollars
  • Varine Varine:
    Another issue I'm learning is that a lot of the air quality sensors don't work at very high ambient temperatures. I'm planning on heating this enclosure to like 60C or so, and that's the upper limit of their functionality
  • Varine Varine:
    Although I don't know if I need to actually actively heat it or just let the plate and hotend bring the ambient temp to whatever it will, but even then I need to figure out an exfiltration for hot air. I think I kind of know what to do but it's still fucking confusing
  • The Helper The Helper:
    Maybe you could find some of that information from AC tech - like how they detect freon and such
  • Varine Varine:
    That's mostly what I've been looking at
  • Varine Varine:
    I don't think I'm dealing with quite the same pressures though, at the very least its a significantly smaller system. For the time being I'm just going to put together a quick scrubby box though and hope it works good enough to not make my house toxic
  • Varine Varine:
    I mean I don't use this enough to pose any significant danger I don't think, but I would still rather not be throwing styrene all over the air
  • The Helper The Helper:
    New dessert added to recipes Southern Pecan Praline Cake https://www.thehelper.net/threads/recipe-southern-pecan-praline-cake.193555/
  • The Helper The Helper:
    Another bot invasion 493 members online most of them bots that do not show up on stats
  • Varine Varine:
    I'm looking at a solid 378 guests, but 3 members. Of which two are me and VSNES. The third is unlisted, which makes me think its a ghost.
    +1
  • The Helper The Helper:
    Some members choose invisibility mode
    +1
  • The Helper The Helper:
    I bitch about Xenforo sometimes but it really is full featured you just have to really know what you are doing to get the most out of it.
  • The Helper The Helper:
    It is just not easy to fix styles and customize but it definitely can be done
  • The Helper The Helper:
    I do know this - xenforo dropped the ball by not keeping the vbulletin reputation comments as a feature. The loss of the Reputation comments data when we switched to Xenforo really was the death knell for the site when it came to all the users that left. I know I missed it so much and I got way less interested in the site when that feature was gone and I run the site.
  • Blackveiled Blackveiled:
    People love rep, lol
    +1
  • The Helper The Helper:
    The recipe today is Sloppy Joe Casserole - one of my faves LOL https://www.thehelper.net/threads/sloppy-joe-casserole-with-manwich.193585/
  • The Helper The Helper:
    Decided to put up a healthier type recipe to mix it up - Honey Garlic Shrimp Stir-Fry https://www.thehelper.net/threads/recipe-honey-garlic-shrimp-stir-fry.193595/

      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