Author Topic: systems shutsdown after running my code  (Read 3801 times)

genwin

  • Guest
systems shutsdown after running my code
« on: August 30, 2008, 11:09:15 am »
Hi,

I'm new here(and new to programming) and just downloaded the latest version of codeblocks. So i ran my first code, a simple one that ran fine with dev c++. But then after executing it, the system mysteriously shuts down. Then i tried it with dev c++ and the same thing happens(although it never happened before with dev). What could be causing this problem?

thanks

Offline Pecan

  • Plugin developer
  • Lives here!
  • ****
  • Posts: 2778
Re: systems shutsdown after running my code
« Reply #1 on: August 30, 2008, 04:40:52 pm »
Hi,

I'm new here(and new to programming) and just downloaded the latest version of codeblocks. So i ran my first code, a simple one that ran fine with dev c++. But then after executing it, the system mysteriously shuts down. Then i tried it with dev c++ and the same thing happens(although it never happened before with dev). What could be causing this problem?

thanks

A bug in the program is causing the problem.

See the debugging sections of:
CUNY CodeBlocks Student Manual
http://www.sci.brooklyn.cuny.edu/~goetz/codeblocks/codeblocks-instructions.pdf
(slow loading, but worth the wait)
and:
Debugging With CodeBlocks
http://wiki.codeblocks.org/index.php?title=Debugging_with_Code::Blocks

step through the program statements until you see the error.
« Last Edit: August 30, 2008, 04:44:31 pm by Pecan »