Click here to Skip to main content
15,903,388 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Compile error caused from big header file Pin
leon de boer13-Aug-13 9:28
leon de boer13-Aug-13 9:28 
Questionhow to get hard drive serial number using c++ Pin
Heya from Delhi9-Jul-13 18:51
Heya from Delhi9-Jul-13 18:51 
AnswerRe: how to get hard drive serial number using c++ Pin
«_Superman_»9-Jul-13 20:37
professional«_Superman_»9-Jul-13 20:37 
Question[SOLVED] GetScanline is not a member of TBitmapData??? Pin
PickRelated8-Jul-13 23:14
PickRelated8-Jul-13 23:14 
AnswerRe: GetScanline is not a member of TBitmapData??? Pin
Richard MacCutchan8-Jul-13 23:21
mveRichard MacCutchan8-Jul-13 23:21 
GeneralRe: GetScanline is not a member of TBitmapData??? Pin
PickRelated8-Jul-13 23:35
PickRelated8-Jul-13 23:35 
GeneralRe: GetScanline is not a member of TBitmapData??? Pin
PickRelated8-Jul-13 23:41
PickRelated8-Jul-13 23:41 
GeneralRe: GetScanline is not a member of TBitmapData??? Pin
Richard MacCutchan9-Jul-13 0:07
mveRichard MacCutchan9-Jul-13 0:07 
GeneralRe: GetScanline is not a member of TBitmapData??? Pin
PickRelated9-Jul-13 1:38
PickRelated9-Jul-13 1:38 
QuestionHow to edit metadata of a wmv file in c++ Pin
Member 78368298-Jul-13 22:39
Member 78368298-Jul-13 22:39 
AnswerRe: How to edit metadata of a wmv file in c++ Pin
Richard MacCutchan8-Jul-13 23:15
mveRichard MacCutchan8-Jul-13 23:15 
QuestionAccess Deined Pin
sarfaraznawaz8-Jul-13 20:15
sarfaraznawaz8-Jul-13 20:15 
AnswerRe: Access Deined Pin
Jochen Arndt8-Jul-13 21:00
professionalJochen Arndt8-Jul-13 21:00 
AnswerRe: Access Deined Pin
Erudite_Eric10-Jul-13 2:16
Erudite_Eric10-Jul-13 2:16 
QuestionWhich event generated on SetItemtext in CLitsCtrl? Pin
Le@rner8-Jul-13 19:45
Le@rner8-Jul-13 19:45 
AnswerRe: Which event generated on SetItemtext in CLitsCtrl? Pin
«_Superman_»8-Jul-13 20:09
professional«_Superman_»8-Jul-13 20:09 
GeneralRe: Which event generated on SetItemtext in CLitsCtrl? Pin
Le@rner8-Jul-13 20:15
Le@rner8-Jul-13 20:15 
GeneralRe: Which event generated on SetItemtext in CLitsCtrl? Pin
«_Superman_»8-Jul-13 20:28
professional«_Superman_»8-Jul-13 20:28 
GeneralRe: Which event generated on SetItemtext in CLitsCtrl? Pin
Freak308-Jul-13 21:39
Freak308-Jul-13 21:39 
QuestionHow to write a Un-fixed size memory pool ? Pin
yu-jian8-Jul-13 4:42
yu-jian8-Jul-13 4:42 
AnswerRe: How to write a Un-fixed size memory pool ? Pin
jschell8-Jul-13 8:35
jschell8-Jul-13 8:35 
AnswerRe: How to write a Un-fixed size memory pool ? Pin
Stefan_Lang15-Jul-13 23:14
Stefan_Lang15-Jul-13 23:14 
The task you're describing is exactly what the system memory manager is built for! It can allocate objects of any size, and will organize your memory in such a way that it can handle millions of calls without serious degradation.

Memory Pools take advantage of the fact that most of the time when you have lots of allocations, you always allocate objects of the same type and size. Based on that assumption, you can improve the performance of the allocation (and deallocation) process, and reduce memory fragmentation.

If you can't make such assumptions, then you'd need to do exactly the same thing the system memory manager does. In other words: just use new and delete.

Is there a specific reason why you think you need a pool? Maybe there are better ways to improve yur program.
GeneralRe: How to write a Un-fixed size memory pool ? Pin
yu-jian16-Jul-13 5:41
yu-jian16-Jul-13 5:41 
GeneralRe: How to write a Un-fixed size memory pool ? Pin
Stefan_Lang16-Jul-13 20:48
Stefan_Lang16-Jul-13 20:48 
GeneralRe: How to write a Un-fixed size memory pool ? Pin
yu-jian17-Jul-13 4:47
yu-jian17-Jul-13 4:47 

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.