Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Large Array

Status
Not open for further replies.

PjotrvA

Programmer
Feb 25, 2003
26
NL
Hi,

I want to create a large Array in Visual C++.
I have an array of [256][256][256] containing a 3 Byte value. It compiles, but I get an error in runtime. (Yes I know it is an array of 48 MB)

Does anyone know of a way to create a large array without the runtime errors?

thnx Pjotr
 
That should be possible. The error is likely in your code. Post the relevant parts and indicate where the error occurs.

-pete
 
When/if you post code look at the TGML documentation. You don't want to use the letter 'i' for array indecies

[ i ]

since it creates a TGML tag and will mess your post up, unless you place your code in a TGML [ code ] [ /code ] tag.

-pete
 
Thnx All,

already solved the problem by using malloc.

greetings Pjotr
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top