Skip to main content
gamedev.net
🔒 Locked

array

Started by PhanThomas Jan 6, 2001 at 6:13 AM 5 replies 700+ views
Original Post
PhanThomas
PhanThomas
Why can''t I make an array of USHORT [65536][20]. Everytime I try this my program doesn''t start. If I decrease the size of the array it works.
crazy-vasey
crazy-vasey
if you''re using DOS the array is too big
PhanThomas
PhanThomas
quote:
Original post by pouya

woaa! that allocates a whole megabyte of memory!

if you''re under DOS, try setting the compiler memory optiong to "HUGE" (the sefault is "SMALL" I guess)




I know it''s big. But that''s the way "Ironblade" suggested to a fade with a clut (see "Game Programming Genesis V"). And I''m programming under Windows.
mossmoss
mossmoss
quote:
Original post by PhanThomas

[quote]Original post by pouya
I know it's big. But that's the way "Ironblade" suggested to a fade with a clut (see "Game Programming Genesis V"). And I'm programming under Windows.


That array is 2.5 megabytes in size... Either you're misunderstanding Ironblade, or Ironblade is an loony.

---- --- -- -
Blue programmer needs food badly. Blue programmer is about to die!


Edited by - mossmoss on January 6, 2001 2:11:12 PM
PhanThomas
PhanThomas
quote:

That array is 2.5 megabytes in size... Either you're misunderstanding Ironblade, or Ironblade is an loony.



If you don't believe me just watch here:

http://www.gamedev.net/reference/programming/features/gpgenesis5/page6.asp

Edited by - PhanThomas on January 7, 2001 6:26:23 AM
PhanThomas
PhanThomas
quote:
Original post by pouya

ok, where''s ironblayde...

"A pouya is a tropical drink with a high alcoholic content, served in expensive bars." -- Andrew Russell


Very funny. Of course his article on the site not a picture of him.

Very funny.

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.