Click here to Skip to main content
15,891,657 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionRe: Class with variable length data Pin
David Crow8-Sep-08 4:09
David Crow8-Sep-08 4:09 
QuestionHow to define interface that it is strong, safe and ... Pin
york5286-Sep-08 9:58
york5286-Sep-08 9:58 
AnswerRe: How to define interface that it is strong, safe and ... Pin
liquid_6-Sep-08 10:28
liquid_6-Sep-08 10:28 
AnswerRe: How to define interface that it is strong, safe and ... Pin
Perspx6-Sep-08 10:28
Perspx6-Sep-08 10:28 
QuestionHow does export cookies functionality of IE is working with vc++? Pin
krishnakumartm6-Sep-08 8:12
krishnakumartm6-Sep-08 8:12 
Questionmy c++ application cannot allocate more than 400MB with new[] Pin
ybenaabud6-Sep-08 5:46
ybenaabud6-Sep-08 5:46 
GeneralRe: my c++ application cannot allocate more than 400MB with new[] Pin
Perspx6-Sep-08 6:41
Perspx6-Sep-08 6:41 
AnswerRe: my c++ application cannot allocate more than 400MB with new[] Pin
Bram van Kampen6-Sep-08 14:17
Bram van Kampen6-Sep-08 14:17 
Do you realy need all this data in memory, all at the same time?

Things like arrays of data are nice to work with, but, if it becomes unreasonably large, (and I would call 400 MB too large to work with), you employ a different approach. You open the File, and read small sections from which you work out where to go next,and so on.

Why things do not work in your case is a different matter, and has most likely to do with where the OS puts things in the LOGICAL Address Space.
For Instance, the area from 2GB to 4GB in your logical address space is reserved by the system. You would not get memory allocated there even if you had 16 GB of memory.

Admittedly, Microsoft does not encourage this approach, their User MFC Document Model was until recently that a Document is something like a Word Document or a Spread Sheet which is Loaded, Modified and Saved each time in it's entirety. That is not a very useful model for large amounts of Data.(You cannot load say a 64 kb Block out of the middle of a CDocument).

Where amounts of Data became large, I devised my own DB Structure, and never read entire files, just the sections I Need. I also found it useful to create and store Hash Tables to speed up searching.

Hope this is Helpfull, Smile | :)

Bram van Kampen

GeneralRe: my c++ application cannot allocate more than 400MB with new[] Pin
ybenaabud6-Sep-08 16:30
ybenaabud6-Sep-08 16:30 
GeneralRe: my c++ application cannot allocate more than 400MB with new[] Pin
Bram van Kampen6-Sep-08 18:12
Bram van Kampen6-Sep-08 18:12 
AnswerRe: my c++ application cannot allocate more than 400MB with new[] Pin
ybenaabud7-Sep-08 3:15
ybenaabud7-Sep-08 3:15 
QuestionRe: my c++ application cannot allocate more than 400MB with new[] Pin
David Crow8-Sep-08 4:13
David Crow8-Sep-08 4:13 
GeneralRe: my c++ application cannot allocate more than 400MB with new[] Pin
ybenaabud8-Sep-08 11:59
ybenaabud8-Sep-08 11:59 
QuestionRe: my c++ application cannot allocate more than 400MB with new[] Pin
David Crow8-Sep-08 15:42
David Crow8-Sep-08 15:42 
AnswerRe: my c++ application cannot allocate more than 400MB with new[] Pin
ybenaabud9-Sep-08 11:03
ybenaabud9-Sep-08 11:03 
GeneralRe: my c++ application cannot allocate more than 400MB with new[] Pin
David Crow9-Sep-08 17:58
David Crow9-Sep-08 17:58 
NewsCHttpConnection OpenRequest SendRequest [modified] Pin
dehseth6-Sep-08 4:43
dehseth6-Sep-08 4:43 
QuestionHow can repaint a view? Pin
Le@rner6-Sep-08 1:56
Le@rner6-Sep-08 1:56 
AnswerRe: How can repaint a view? Pin
bob169726-Sep-08 5:46
bob169726-Sep-08 5:46 
AnswerRe: How can repaint a view? Pin
bob169726-Sep-08 5:58
bob169726-Sep-08 5:58 
AnswerRe: How can repaint a view? Pin
Cedric Moonen6-Sep-08 7:40
Cedric Moonen6-Sep-08 7:40 
QuestionUpdateData giving run time error Pin
Dhiraj kumar Saini6-Sep-08 0:31
Dhiraj kumar Saini6-Sep-08 0:31 
AnswerRe: UpdateData giving run time error Pin
Gary R. Wheeler6-Sep-08 1:24
Gary R. Wheeler6-Sep-08 1:24 
GeneralRe: UpdateData giving run time error Pin
Dhiraj kumar Saini6-Sep-08 1:33
Dhiraj kumar Saini6-Sep-08 1:33 
GeneralRe: UpdateData giving run time error Pin
Gary R. Wheeler6-Sep-08 2:11
Gary R. Wheeler6-Sep-08 2:11 

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.