473,385 Members | 2,243 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,385 software developers and data experts.

problem with big programs

Hello everybody,

I have written a program and I have included 5 other programs (which I
have borrowed 3 of them) in my program. Every time that I change the
size of my arrays (pointers) I get different answers and sometimes no
answer. I think I have a memory problem and I have tried to solve it
many times but I couldn't. Does anybody have any idea how to solve
such a kind of problem?
I have also tested the program in UNIX and the results are different
from Windows!
I feel the program is so big and I cannot manage how take care of all
of it.
Thanks,
Mohsen

Aug 1 '06 #1
4 1083
Perhaps your deconstructors are deleting information which you might
need, or maybe you didn't program your copy constructor correctly. Try
taking the deconstructors out temporarily and see if that fixes it, if
it does you know where your problem is. Also, try stepping through your
program and see exactly where it is going wrong.

Aug 1 '06 #2
"Mohsen" <ja*******@gmail.comwrites:
>Hello everybody,
>Every time that I change the size of my arrays (pointers)
Could you go into more detail about what the "(pointers)" bit means?

Have you tried something like http://valgrind.org/ ?
Aug 1 '06 #3

"Mohsen" <ja*******@gmail.comwrote in message
news:11**********************@m73g2000cwd.googlegr oups.com...
Hello everybody,

I have written a program and I have included 5 other programs (which I
have borrowed 3 of them) in my program. Every time that I change the
size of my arrays (pointers) I get different answers and sometimes no
answer. I think I have a memory problem and I have tried to solve it
many times but I couldn't. Does anybody have any idea how to solve
such a kind of problem?
I have also tested the program in UNIX and the results are different
from Windows!
I feel the program is so big and I cannot manage how take care of all
of it.
Are we supposed to just guess? We have absolutely no idea what your code
looks like, or what the problems you're seeing are. Please read the FAQ on
how to post to this newsgroup:

http://www.parashift.com/c++-faq-lite/

(By the way, a common method of debugging a program is to use a debugger.
Try it.)

-Howard

Aug 1 '06 #4
I am simulating a population with different number of individuals, each
individual has some genetic information. Those information are in
pointers.
I have not used like http://valgrind.org/ yet.
Thanks,
Mohsen

Tim Love wrote:
"Mohsen" <ja*******@gmail.comwrites:
Hello everybody,
Every time that I change the size of my arrays (pointers)
Could you go into more detail about what the "(pointers)" bit means?

Have you tried something like http://valgrind.org/ ?
Aug 1 '06 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Rami A. Kishek | last post by:
Please help! Very strange installation problem. First, let me say I successfully installed and use Python 2.2.3 and 2.3 from the EXE binaries on a win ME machine. That machine previously had...
117
by: Peter Olcott | last post by:
www.halting-problem.com
9
by: Rajat Tandon | last post by:
Hello there, I am relatively new to the newsgroups and C#. I have never been disappointed with the groups and always got the prompt replies to my queries.This is yet another strange issue, I am...
0
by: livibetter | last post by:
I can or can not run any .net programs which using Windows.Forms At the time I just installed Windows XP Home, I can run .net programs. After sometime, I can't run those programs anymore. I just...
15
by: arnuld | last post by:
Next month I will start to work on a C++ based Software named CAT++ which is going to provide FORTRAN like arrays in C++ and will be used within Scientific Community and hence will heavily depend...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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...

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.