User forums > Help

systems shutsdown after running my code

(1/1)

genwin:
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

Pecan:

--- Quote from: genwin 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

--- End quote ---

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.

Navigation

[0] Message Index

Go to full version