473,408 Members | 2,441 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,408 software developers and data experts.

Possible Memory Problem

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
1 1307
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Mike | last post by:
Related to another topic I just posted, I wanted to discuss ways to optimize the validation of very large (>100MB) XML documents. First, I have no idea if something like this already exists; it...
3
by: MSNEWS | last post by:
Hi I have a VB.NET app which reads thru a list of directories containing word files, converts the file to text and then loads into a SQL SERVER table. To avoid any word issues (macro virus,...
14
by: jack | last post by:
At this link I have two c# projects, one is a client, the other is a server. Just point the ip address of the client at the server http://www.slip-angle.com/hosted/bug/ The server does...
13
by: Roman Mashak | last post by:
Hello, All! I have this small piece of code, where segmentation fault happenes only upon runnin code. No problems during debug (JFI I'm using gdb-6.3): ---- struct host_info { char *host;...
1
by: Brian Mahloch | last post by:
Hello, I have an ASP.Net application that seems to hiccup every so often for 10 - 15 minutes. The situation is that the controls on the web form (loading dynamically from SQL Server) will come...
1
by: Wanderer | last post by:
Hi All, I'm facing a problem with running a website developed on ASP.NET 1.1 concerning possible memory usage on the hosting webserver. The server has 4GB RAM (dual xeon with IIS 6.0), but the...
29
by: Tuvas | last post by:
I have a function in a program that works something like this. def load_pic_data(width,heigth,inpdat, filt=TRUE): data='' total=0 tnum=0 size=100 for y in range(0,heigth): row='' for x in...
1
by: Joe Peterson | last post by:
I've been doing a lot of searching on the topic of one of Python's more disturbing issues (at least to me): the fact that if a __del__ finalizer is defined and a cyclic (circular) reference is...
11
by: Andy Watson | last post by:
I have an application that scans and processes a bunch of text files. The content I'm pulling out and holding in memory is at least 200MB. I'd love to be able to tell the CPython virtual machine...
6
by: tgnelson85 | last post by:
Hello, C question here (running on Linux, though there should be no platform specific code). After reading through a few examples, and following one in a book, for linked lists i thought i would...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.