stop runnig program

Hello all dear

First , thank you for all of your help

I have a program that run for 1000 time and I give the size of network and it calculate time , Now for big size like 256 when run it after afew seconds program stop work , although for lower size give the result .

now what do you think ? and what should I do ?

Best Regards
Last edited on
We'll need more information. Why does it stop working? Are you allocating a ton of memory?
Or do you happen to have an array exceeding it´s boundaries? That´s one of those reasons causing runtime error(s) in C++, too.

Hello

when I debug my program , it show problem in one array in my program
in this array I store numbers
array size : [2*n][N+1]

for example : this array with size N=8 , n=3 fill like below according to algorithm

0 , 1 , 2 , 4
6 , 7
5 , 3

column [N+1] in array fill with number of numbers in each row , for this example is

4
2
2

Now , this is an example for size 8 and for big size like 256 , this array will have problem

I dont know how can I solve it ???????????

Thank you very much
Regards






If you have too large N/n, you program will probably won't be able to allocate all that memory. The simplest solution is: don't make your array that big.

Thanks for your answer

but I should use big sizes for my program . This program is one part of my master project and I must get result .

Do you think if I run program in another computer , it give answer ?

This program in java give answer but I write it in C++ and now for big size when run program 1000 time did not give answer !!!!! but for 10 times for big size give answer .

Regards
Topic archived. No new replies allowed.