Click here to Skip to main content
16,011,383 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: SnapShot Pin
Liger_Zero_X8-Jul-04 21:21
Liger_Zero_X8-Jul-04 21:21 
GeneralRe: SnapShot Pin
Liger_Zero_X8-Jul-04 22:47
Liger_Zero_X8-Jul-04 22:47 
GeneralQuestions on the keyword "register" in C & C++ Pin
Link26007-Jul-04 15:56
Link26007-Jul-04 15:56 
GeneralRe: Questions on the keyword "register" in C & C++ Pin
Ryan Binns7-Jul-04 16:31
Ryan Binns7-Jul-04 16:31 
GeneralRe: Questions on the keyword "register" in C & C++ Pin
Paul Ranson8-Jul-04 0:00
Paul Ranson8-Jul-04 0:00 
GeneralRe: Questions on the keyword "register" in C & C++ Pin
Link26008-Jul-04 13:39
Link26008-Jul-04 13:39 
GeneralRe: Questions on the keyword "register" in C & C++ Pin
Paul Ranson9-Jul-04 0:47
Paul Ranson9-Jul-04 0:47 
GeneralC++ questions - memory allocation speed and using an instance of a class Pin
Indrawati7-Jul-04 14:04
Indrawati7-Jul-04 14:04 
Hi
I have two questions on C++:
1. If my application continuously allocate and relase memory (each allocation is around 40Kb, and there may be around 40 allocations and deallocations on each iteration), will the application run faster if I were to write a memory manager class that, instead of freeing the allocated memory, it stores it in e.g. a linked list and reuse it when the app requests for memory?
2. If using a memory manager class will be faster, how can I share an instance of this class among all the classes that needs it? I think it will be more efficient to just create one memory manager instance and share it among all the classes, instead of creating one instance of the memory manager for each class that needs it.

Thanks!
GeneralRe: C++ questions - memory allocation speed and using an instance of a class Pin
palbano7-Jul-04 16:58
palbano7-Jul-04 16:58 
GeneralHelp managing test code Pin
Gavin Stark7-Jul-04 14:04
Gavin Stark7-Jul-04 14:04 
QuestionDont lose focus? Pin
Larsson7-Jul-04 13:16
Larsson7-Jul-04 13:16 
AnswerRe: Dont lose focus? Pin
Ken Mazaika7-Jul-04 13:34
Ken Mazaika7-Jul-04 13:34 
GeneralRe: Dont lose focus? Pin
Larsson7-Jul-04 13:37
Larsson7-Jul-04 13:37 
GeneralRe: Dont lose focus? Pin
Ken Mazaika7-Jul-04 13:42
Ken Mazaika7-Jul-04 13:42 
GeneralRe: Dont lose focus? Pin
Larsson7-Jul-04 13:44
Larsson7-Jul-04 13:44 
GeneralRe: Dont lose focus? Pin
Ken Mazaika7-Jul-04 13:51
Ken Mazaika7-Jul-04 13:51 
GeneralRe: Dont lose focus? Pin
Larsson7-Jul-04 13:54
Larsson7-Jul-04 13:54 
AnswerRe: Dont lose focus? Pin
ThatsAlok7-Jul-04 21:56
ThatsAlok7-Jul-04 21:56 
GeneralDialog Box Pin
Ken Mazaika7-Jul-04 13:06
Ken Mazaika7-Jul-04 13:06 
GeneralCommand line arguments.. Pin
Laing,James7-Jul-04 12:17
Laing,James7-Jul-04 12:17 
GeneralRe: Command line arguments.. Pin
Graham Bradshaw7-Jul-04 12:32
Graham Bradshaw7-Jul-04 12:32 
GeneralRe: Command line arguments.. Pin
Laing,James7-Jul-04 12:37
Laing,James7-Jul-04 12:37 
GeneralPostMessage problem Pin
BlackDice7-Jul-04 11:44
BlackDice7-Jul-04 11:44 
GeneralCFrameWnd draw Pin
james6667-Jul-04 10:56
james6667-Jul-04 10:56 
GeneralNeed help for memory leak Pin
Vincent Ye7-Jul-04 10:21
Vincent Ye7-Jul-04 10:21 

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.