News:

When registered with our forums, feel free to send a "here I am" post here to differ human beings from SPAM bots.

Main Menu

Not reading/writing to memory

Started by thelittlesthobo, February 28, 2012, 01:02:09 AM

Previous topic - Next topic

thelittlesthobo

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

oBFusCATed

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.
(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!]