Skip to main content
gamedev.net
๐Ÿ”’ Locked

Exceeding memory

Started by CProgrammer Jan 4, 2004 at 12:29 AM 5 replies 300+ views
Original Post
CProgrammer
CProgrammer
What happens if my application exceeds a computers memory capacities? Will the programm just crash or will windows give an apropriate error message? -CProgrammer
tHiSiSbOb
tHiSiSbOb
Well, It is probably very hard to do (taking virtual memory into cosideration), but would probably give you an error message (unless your system became so unstable that it crashes).
----------------------------------------------------"Plant a tree. Remove a Bush" -A bumper sticker I saw.
smart_idiot
smart_idiot
malloc returns 0. If you don''t check for that, it will probably crash. new will throw an exception. If you don''t catch that, it will crash.
Chess is played by three people. Two people play the game; the third provides moral support for the pawns. The object of the game is to kill your opponent by flinging captured pieces at his head. Since the only piece that can be killed is a pawn, the two armies agree to meet in a pawn-infested area (or even a pawn shop) and kill as many pawns as possible in the crossfire. If the game goes on for an hour, one player may legally attempt to gouge out the other
smart_idiot
smart_idiot
I''m not sure what happens when you run out of stack space.
Chess is played by three people. Two people play the game; the third provides moral support for the pawns. The object of the game is to kill your opponent by flinging captured pieces at his head. Since the only piece that can be killed is a pawn, the two armies agree to meet in a pawn-infested area (or even a pawn shop) and kill as many pawns as possible in the crossfire. If the game goes on for an hour, one player may legally attempt to gouge out the other
CProgrammer
CProgrammer
I see thanks guys.
-CProgrammer
antareus
antareus
quote:
Original post by smart_idiot
I''m not sure what happens when you run out of stack space.

A structured exception is thrown on Win32 I believe.
--God has paid us the intolerable compliment of loving us, in the deepest, most tragic, most inexorable sense.- C.S. Lewis

Topic Locked

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

Sign in to reply to this topic.