Re: Array size problem

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, 19 Jul 2004 11:08:50 +1000
Sisyphus <kalinabears@xxxxxxxxxxxx> wrote:

> Joachim Matussek wrote:
> > Hello,
> > 
> > when i try to declare a big float array within a function my program crashed. Smaller arrays work well.
> > 
> > Example:
> > 
> > float array[70000][100];
> > 
> > MinGW-3.1.0-1
> > Windows 2000 Prof SP4
> > 
> 
> For me that produces an "unknown software exception" at runtime. The 
> same happens if you use the Visual Studio compiler.
> I assume it occurs when you request more memory than is available. On my 
> Win2000 box I can declare an array size of up to 520764 floats/longs 
> (and 4 times as many chars) before the error arises.
> 
> Cheers,
> Rob
> 
> 
> -- 
> Any emails containing attachments will be deleted from my ISP's mail 
> server before I even get to see them. If you wish to email me an 
> attachment, please provide advance warning so that I can make the 
> necessary arrangements.
> 
Hi there!

Probably it is unavaiable such a big continous memory area, try to solve this with aray with pointers to smaller areas. Could you mail me a source code, i'll try this on WinXP box(i have one @ work).

[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux