Click here to Skip to main content
15,790,795 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Query regarding ListBox Pin
Rajkumar R14-Apr-08 3:42
Rajkumar R14-Apr-08 3:42 
GeneralRe: Query regarding ListBox Pin
Rajesh R Subramanian14-Apr-08 3:46
professionalRajesh R Subramanian14-Apr-08 3:46 
GeneralRe: Query regarding ListBox Pin
Hamid_RT15-Apr-08 3:24
Hamid_RT15-Apr-08 3:24 
GeneralC++ new dynamic allocation of memory problem Pin
Member 336349814-Apr-08 3:28
Member 336349814-Apr-08 3:28 
GeneralRe: C++ new dynamic allocation of memory problem Pin
Cedric Moonen14-Apr-08 3:31
Cedric Moonen14-Apr-08 3:31 
GeneralRe: C++ new dynamic allocation of memory problem Pin
Member 336349814-Apr-08 3:39
Member 336349814-Apr-08 3:39 
GeneralRe: C++ new dynamic allocation of memory problem [modified] Pin
JudyL_MD14-Apr-08 5:18
JudyL_MD14-Apr-08 5:18 
GeneralRe: C++ new dynamic allocation of memory problem Pin
Matthew Faithfull14-Apr-08 3:57
Matthew Faithfull14-Apr-08 3:57 
If you want to do this sort of thing you're probably best off using the Virtual Memory Win32 API, ::VirtualAlloc etc. Windows doesn't cope all that well if you try and grab all the RAM off it through the normal heap mechanism. You're also incurring CRT overhead and possibly tripping over inherent 2GB limits in the CRT malloc etc implementations when you use new. If you don't want to use Virtual memory you could use the Win32 Heap API e.g. ::HeapAlloc instead. Depending on how much RAM you've actually got you might get away with it. If you do my advice is make sure your allocation size are multiples of 64K and don't make them larger than about 4MB max at a time. That might help Windows to cope well enough. There's all sorts of wiredness going on underneath as ever with disk cache sizes and paging stuff in and out so you might want to target a specific and relatively recent Windows version aswell e.g. at least Server 2003 by defining _WIN32_WINNT 0x0502 and WINVER 0x0502. I'm not certain this will help but it's worth a try. Smile | :)

"The secret of happiness is freedom, and the secret of freedom, courage."
Thucydides (B.C. 460-400)

AnswerRe: C++ new dynamic allocation of memory problem Pin
James R. Twine14-Apr-08 4:03
James R. Twine14-Apr-08 4:03 
GeneralRe: C++ new dynamic allocation of memory problem Pin
Joe Woodbury14-Apr-08 7:57
professionalJoe Woodbury14-Apr-08 7:57 
GeneralRe: C++ new dynamic allocation of memory problem Pin
Stephen Hewitt14-Apr-08 16:27
Stephen Hewitt14-Apr-08 16:27 
QuestionSerial communication Pin
FPeeters14-Apr-08 2:05
FPeeters14-Apr-08 2:05 
GeneralRe: Serial communication Pin
Cedric Moonen14-Apr-08 2:16
Cedric Moonen14-Apr-08 2:16 
GeneralRe: Serial communication Pin
FPeeters14-Apr-08 2:38
FPeeters14-Apr-08 2:38 
QuestionRe: Serial communication Pin
CPallini14-Apr-08 3:11
mveCPallini14-Apr-08 3:11 
GeneralRe: Serial communication Pin
FPeeters14-Apr-08 3:18
FPeeters14-Apr-08 3:18 
GeneralRe: Serial communication Pin
Cedric Moonen14-Apr-08 3:22
Cedric Moonen14-Apr-08 3:22 
GeneralRe: Serial communication Pin
FPeeters14-Apr-08 3:33
FPeeters14-Apr-08 3:33 
GeneralRe: Serial communication Pin
FPeeters14-Apr-08 5:19
FPeeters14-Apr-08 5:19 
GeneralRe: Serial communication Pin
CPallini14-Apr-08 4:04
mveCPallini14-Apr-08 4:04 
GeneralRe: Serial communication Pin
FPeeters14-Apr-08 4:36
FPeeters14-Apr-08 4:36 
QuestionRe: Serial communication Pin
CPallini14-Apr-08 5:45
mveCPallini14-Apr-08 5:45 
GeneralRe: Serial communication Pin
Randor 14-Apr-08 6:28
professional Randor 14-Apr-08 6:28 
GeneralRe: Serial communication Pin
CPallini14-Apr-08 6:48
mveCPallini14-Apr-08 6:48 
GeneralRe: Serial communication Pin
FPeeters14-Apr-08 20:56
FPeeters14-Apr-08 20:56 

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.