What are your recommendations as far as preventing the "Dangling pointer problem?" Do you ALWAYS assign NULL to the pointer as soon as you free it? Are there any other methods you recommend or have tried? Thanks.
Btw: Dangling pointers in this case refers to pointers which point to memory that has already been freed and thus a deference would be bad