Welcome to Dream.In.Code
Getting Help is Easy!

Join 132,618 Programmers for FREE! Get instant access to thousands of experts, tutorials, code snippets, and more! There are 1,007 people online right now. Registration is fast and FREE... Join Now!




Memory Allocation

 
Reply to this topicStart new topic

Memory Allocation

unreal_origin
post 8 Apr, 2006 - 01:56 PM
Post #1


Wisdom Listens

Group Icon
Joined: 21 Apr, 2005
Posts: 701



Dream Kudos: 60
My Contributions


Does Windows have a specific memory allocation size for programs that require lager memory sizes? Resulting in terminating the pogram

Example simulation programs
User is offlineProfile CardPM

Go to the top of the page

1lacca
post 8 Apr, 2006 - 02:31 PM
Post #2


code.rascal

Group Icon
Joined: 11 Aug, 2005
Posts: 3,822



Thanked 11 times
My Contributions


I am not sure if I understood your question well, so I hope this is what you asked rolleyes.gif
Windows (32bit) gives 4gigs of address space for each program, but your app can only use 2G, because 2G is reserved for the OS. So theoretically you are free to use memory up to 2G(data + code). Above that, you get an immediate exception or BSOD, I can't remember right now. Otherwise if there is enough free virtual memory available you are ok, else you get the exception.
User is offlineProfile CardPM

Go to the top of the page

Fast ReplyReply to this topicStart new topic
Time is now: 11/23/08 03:15AM

Live Help!

Tutorials

Programming

Web Development

Reference Sheets

Code Snippets

Bye Bye Ads

Free DIC T-Shirt

T-Shirt Example

Related Sites

Monthly Drawing

Thumb Drive

Partners

Top Contributors

Top 10 Kudos This Month