Author Topic: Not reading/writing to memory  (Read 2859 times)

thelittlesthobo

  • Guest
Not reading/writing to memory
« 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

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: Not reading/writing to memory
« Reply #1 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.
(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!]