By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,640 Members | 2,279 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,640 IT Pros & Developers. It's quick & easy.

Possible Memory Problem

P: n/a
Hello everyone,

I am writing a simulation program and based on my current results, I
think I have some memory problems. The program is composed of a main
and 5 other programs which has made it big (more than 3000 lines).
I am looking for some kinds of guidelines or any software that can be
used to check the program step by step.
I would appreciate your comments about this problem.

Thanks,
Mohsen

Sep 19 '06 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Mohsen wrote:
I am writing a simulation program and based on my current results, I
think I have some memory problems. The program is composed of a main
and 5 other programs which has made it big (more than 3000 lines).
I am looking for some kinds of guidelines or any software that can be
used to check the program step by step.
I would appreciate your comments about this problem.
Get either Valgrind, Purify, or maybe Electric Fence, and run the program
with these turned on. They will report the characteristics of any blocks you
seem to leak.

And practice safe coding techniques, such as RAII, smart pointers, and unit
testing, so your odds of leaking go down.
>
Thanks,
Mohsen

Sep 19 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.