Menu

Console opens and closes quickly......

Zool
2008-05-20
2012-09-26
  • Zool

    Zool - 2008-05-20

    Ok so.... my problem is that whenever I compile and run in Dev-C++ using the MinGW compiler the output screen just flashes on quickly and then dissappears, I've tried the system("pause") command as suggested and the getchar () command I've checked the box in enviroment options that says something like "run window stays open" but none of these things work what else should I try?

     
    • codor kim

      codor kim - 2008-05-26

      Sorry...

       
      • Wayne Keen

        Wayne Keen - 2008-05-26

        Don't be sorry. I am just explaining why I do things in a certain way, so you don't have to go through the silly learning process that I went through.

        Wayne

         
    • Wayne Keen

      Wayne Keen - 2008-05-20

      You should try posting your Basic 3 for one of the cases, like where you have added the "Pause" command. Otherwise you are asking us to make a LOT of assumptions about how you implemented things and compiled them.

      The Basic 3 are covered in the thread titled "Please read Before Posting a Question"

      Remember, the Basic 3 are useful even when there are no errors. Keep these two rules in mind

      (1) Always post your Basic 3

      (2) If you think you don't need to post them, refer to rule #1

      ;)

      Wayne

       
    • codor kim

      codor kim - 2008-05-23

      I have had the same problem. (I use Vista.) If I replace the last line "return 0;" with "system("PAUSE"); [next line] return EXIT_SUCCESS" then the console will stay open.

      What is amazing is that my WinPcap 4.0 also cannot really be opened. It flashes and disappears. Is this a Vista problem? Please, some expert shed some light here.

       
      • Wayne Keen

        Wayne Keen - 2008-05-23

        I have worked with folks on this many hundreds of times. My asking for their Basic 3 was not to be mean, or because it's a rule, but because (1) There are couple of things that can cause the problem and (2) The OP had referred to already trying to add pause.

        "Please, some expert shed some light here."

        Perhaps your Basic 3 would help as well?

        Wayne

         

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.