Author Topic: help codeblocks automatically shut down  (Read 11491 times)

Offline je1318

  • Single posting newcomer
  • *
  • Posts: 2
help codeblocks automatically shut down
« on: July 23, 2013, 10:28:35 am »
good day.

i have a problem with the computers here at my laboratory room. i asked my student to make a simple c++ programming code like this

// my first program in C++
#include <iostream>
using namespacestd;
intmain ()
{
cout << "Hello World!";
return0;
}

when they run the program it has no problem but after a second the computer is automatically shut down. i told them to try system ("pause"); or system ("pause>nul"); and to run any c++ program excess in the computer but its also shut down.

please help me to solve the problem. i'm new with code blocks. i think on the problem was the process they install the code blocks.what would be the solution to be done.

thank you.
« Last Edit: July 23, 2013, 10:52:51 am by je1318 »

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7252
Re: help codeblocks automatically shut down
« Reply #1 on: July 23, 2013, 10:57:50 am »
This is for sure not a Code::Blocks related issue and therefore violating our forum rules !

C::B will never shutdown the system.

Probably (again) a broken/misconfigured antivirus software.

Offline je1318

  • Single posting newcomer
  • *
  • Posts: 2
Re: help codeblocks automatically shut down
« Reply #2 on: July 23, 2013, 11:13:38 am »
we are using a code blocks here and i have also a code blocks installed in my computer it runs properly.

i asked my student to used to create a project using console but again after the output shown it's again automatically shut down.

what should i do?


Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13406
    • Travis build status
Re: help codeblocks automatically shut down
« Reply #3 on: July 23, 2013, 11:58:30 am »
what should i do?
Test if your hardware is working correctly.
Check for overheating issue, broken components, etc.
Check if this particular OS is installed and working correctly.
Check for driver issues. Standard PC maintenance tasks.

The windows 98 days are long gone, where a user's software could restart the computer.
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]