Code::Blocks Forums

User forums => Help => Topic started by: thelittlesthobo on February 28, 2012, 01:02:09 am

Title: Not reading/writing to memory
Post by: thelittlesthobo on February 28, 2012, 01:02:09 am
Hello
I'm new to Codeblocks and new to C programming.
Can I say firstly how much I am enjoying codeblocks compared to TI code composer.  This is so much more intuitive.
I'm currently only writing small programs so I can get used to the functions within C.  However, when I write anything that involves reading and writing to memory, the program seems to compile ok, but when running I have a windows error telling me that the program has stopped working.  Ive heard that this is just a settings problem at my end, but can't seem to find the info to correct it.  Any help would be much appreciated.
Thankyou
Rob
Title: Re: Not reading/writing to memory
Post by: oBFusCATed on February 28, 2012, 01:49:07 am
Use a normal debugger like gdb or a memory debugger like valgrind or drmemory. It will tell you the line you're doing something wrong.
If you don't have any of these you can always use the printf-debugger or the //-debugger.