Code::Blocks Forums

User forums => Help => Topic started by: pacemaker on March 23, 2022, 03:11:18 pm

Title: code blocks does not work after few seconds
Post by: pacemaker on March 23, 2022, 03:11:18 pm
Hey ! I am new to Code Blocks. A C++ program of mine stops running very soon after starting. I am writing some lines to show me where the program is. Among those lines is  a  ofile << iarray[n]  where n = 1 to 32 and iarray is  unsigned short int array. After a number of correct lines the next line stops right in the middle and the program breaks. Why does this happen ? Is there a limit to the number of lines in a file ? I downloaded the 20.03 Version of code blocks. Do I have to register ? This is not a commercial application but a private program just for me.
Title: Re: code blocks does not work after few seconds
Post by: Miguel Gimenez on March 23, 2022, 04:12:11 pm
Code::Blocks is an IDE, it just compiles and asks your OS to execute the compiled code, so any breaking is not related to C::B.

Use the debugger to trace the problem and, if you can not find it, post a question in a C++ programming forum.

C::B is free, does not require registration and does not impose limitations on usage or size.