Click here to Skip to main content
15,914,225 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Memory allocation related query Pin
ovidiucucu22-Nov-07 22:47
ovidiucucu22-Nov-07 22:47 
GeneralRe: Memory allocation related query Pin
Florin Crişan22-Nov-07 22:54
Florin Crişan22-Nov-07 22:54 
JokeRe: Memory allocation related query Pin
ovidiucucu22-Nov-07 23:21
ovidiucucu22-Nov-07 23:21 
GeneralRe: Memory allocation related query Pin
Sunil Shindekar23-Nov-07 0:02
Sunil Shindekar23-Nov-07 0:02 
GeneralRe: Memory allocation related query Pin
Florin Crişan23-Nov-07 0:19
Florin Crişan23-Nov-07 0:19 
GeneralRe: Memory allocation related query Pin
Florin Crişan23-Nov-07 0:20
Florin Crişan23-Nov-07 0:20 
GeneralRe: Memory allocation related query Pin
Sunil Shindekar23-Nov-07 1:31
Sunil Shindekar23-Nov-07 1:31 
AnswerRe: Memory allocation related query Pin
Luc Pattyn23-Nov-07 9:12
sitebuilderLuc Pattyn23-Nov-07 9:12 
Hi,

all objects are allocated in a single address space, which on a 32-bit operating system
cannot extend beyond 4GB. Actual systems such as Win XP do impose further restrictions;
XP normally deals with 2GB of address space, you can optionally increase that to 3GB.

You want all objects get the number of bytes (hence address range) that their sizes
indicate, and you want all objects non-overlapping, so once their sizes add up to more
than 2 or 3GB game is over.

The size of physical memory plays no role in this; whatever spills over goes into
a disk file where the non-physical memory is temporarily stored; making that file larger
than 2 or 3GB does not make much sense: all addresses (32-bit pointers) must still be
unique and the objects non-overlapping.

On a 64-bit operating system, all pointers occupy twice the amount of space, but the
available address space is theoretically squared, in practice much much larger than you
will ever need.

Smile | :)


Luc Pattyn [Forum Guidelines] [My Articles]


this months tips:
- before you ask a question here, search CodeProject, then Google
- the quality and detail of your question reflects on the effectiveness of the help you are likely to get
- use PRE tags to preserve formatting when showing multi-line code snippets


Questionthread pool Pin
Jhony george22-Nov-07 18:10
Jhony george22-Nov-07 18:10 
AnswerRe: thread pool Pin
Cedric Moonen22-Nov-07 20:10
Cedric Moonen22-Nov-07 20:10 
QuestionRe: thread pool Pin
Jhony george22-Nov-07 23:20
Jhony george22-Nov-07 23:20 
AnswerRe: thread pool [modified] Pin
ovidiucucu22-Nov-07 21:16
ovidiucucu22-Nov-07 21:16 
AnswerRe: thread pool Pin
Mark Salsbery23-Nov-07 5:26
Mark Salsbery23-Nov-07 5:26 
GeneralRe: thread pool Pin
ovidiucucu26-Nov-07 8:29
ovidiucucu26-Nov-07 8:29 
GeneralRe: thread pool Pin
Mark Salsbery26-Nov-07 8:38
Mark Salsbery26-Nov-07 8:38 
QuestionHow to Use Own User Intrface in TWAIN (SDI) Pin
Shivarudrayya H22-Nov-07 17:53
Shivarudrayya H22-Nov-07 17:53 
AnswerRe: How to Use Own User Intrface in TWAIN (SDI) Pin
Mark Salsbery23-Nov-07 5:43
Mark Salsbery23-Nov-07 5:43 
GeneralRe: How to Use Own User Intrface in TWAIN (SDI) Pin
Shivarudrayya H25-Nov-07 17:04
Shivarudrayya H25-Nov-07 17:04 
Question.ico replaced, 32*32 icon changed, 16*16 not changed, why Pin
followait22-Nov-07 17:50
followait22-Nov-07 17:50 
AnswerRe: .ico replaced, 32*32 icon changed, 16*16 not changed, why Pin
Hamid_RT22-Nov-07 19:23
Hamid_RT22-Nov-07 19:23 
GeneralRe: .ico replaced, 32*32 icon changed, 16*16 not changed, why Pin
followait24-Nov-07 15:58
followait24-Nov-07 15:58 
GeneralRe: .ico replaced, 32*32 icon changed, 16*16 not changed, why Pin
Hamid_RT26-Nov-07 19:24
Hamid_RT26-Nov-07 19:24 
AnswerRe: .ico replaced, 32*32 icon changed, 16*16 not changed, why Pin
Iain Clarke, Warrior Programmer23-Nov-07 5:51
Iain Clarke, Warrior Programmer23-Nov-07 5:51 
GeneralRe: .ico replaced, 32*32 icon changed, 16*16 not changed, why Pin
followait24-Nov-07 16:12
followait24-Nov-07 16:12 
QuestionDynamic generation of server controls in asp.net 2.0 Pin
ysunil_7422-Nov-07 17:22
ysunil_7422-Nov-07 17:22 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.