Memory Manage..'Placement New' references
-
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 20/09/2005 at 11:14, xxxxxxxx wrote:
User Information:
Cinema 4D Version: 8.503
Platform: Windows ; Mac ; Mac OSX ;
Language(s) : C++ ;---------
Can anyone recommend a good reference book to C++ 'placement new' - for handling class object allocations into a memory pool?Would be great if the reference was a more generalized Memory Management treatise.
<Cough>Java</cough> ;0)
I'll tell you, dealing with transient arrays, persistent arrays, arrays of classes (both transient and persistent), plugin objects, Cinema 4D objects, etc., etc., etc., it is impossible to avoid memory fragmentation. Bad enough if this was an independent executable, but a dll plugin running in another application where objects are going and coming constantly during processing. Ugggg.. Again - I (and you) shouldn't be charged with the management of memory - this should all be handled by the OS or subsystems. When will they learn...
-
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 23/09/2005 at 04:47, xxxxxxxx wrote:
Found an excellent reference, "Memory as a Programming Concept in C and C++" by Frantisek Franek. Almost missed it! Went through the C++ section of my local MicroCenter book section (probably one of the best computer and related bookstores in the state) several times and, lo and behold, stuffed back, tucked away, there it was.
Problem is that a search of "C++ memory management" on Amazon shows that almost all of the good, relevant books are 'Out of Print'! What can I say, I jumped ship, after moving from C to C++, right to Java during that period when the C++ standard was being solidified (C99).
Now I have several game plans to eradicate memory fragmentation and reduce memory usage.