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

C / C++ / MFC

 
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 
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 
Well, I've never dealt myself with a single object of say 400 MByte.
I do not think that the OS was designed to deal with that either, Furthermore, any software I have seen dealing with objects of this size tended to split them down. The OS can however deal with items aglomarating to this size and larger, provided they are not required to occupy a continuous logical address range. There is a difference between what you would prefer to get optimal performance, and what the OS for practical reasons allows you to do on the ground. In your case I would write it on the basis that it tries every time for the largest chunk of memory it can get, and deal with it that way.

What Also may be worth trying is to try and create a 400 MByte heap, as early as possible in the Program. (In InitInstance, Line One, before the MFC Stuff.) Realistically though, If you expect your code to run on every PC in the country, you have to prepare your code for data in fragments. If you expect it to run on only One PC, (your Own) you can fiddle and tweak the OS until it runs allways with a 400 MByte Object.

Regards Smile | :) Smile | :)

Bram van Kampen

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 
GeneralRe: UpdateData giving run time error Pin
Dhiraj kumar Saini6-Sep-08 3:00
Dhiraj kumar Saini6-Sep-08 3:00 
GeneralRe: UpdateData giving run time error Pin
David Crow8-Sep-08 4:16
David Crow8-Sep-08 4:16 

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.