c pointers and memory allocation

Posts: 26
Joined: 2010.01
Post: #16
Yeah, some of it has gone. There were two useful comments that I remember from that thread:

- someone reported having good success with using a garbage collection library in their C++ code, with minimal performance penalty... there are various libraries out there which you can use for this, such as libgc

- there was a discussion about sprintf(), which is the cause of significant numbers of buffer overruns in programs and contributes - for the umpteenth year running - to one of the top bugs in shipping programs, where I felt compelled to argue the case for the much safer snprintf / sprinft_s variants - it's a good habit to get into...
Quote this message in a reply
Post Reply 

Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  Objective-C Class allocation crash MrMegabytes 2 3,366 Jan 12, 2009 02:28 PM
Last Post: DoG
  C++ pointers (multiple uses inside a class) problems :( wyrmmage 14 5,941 Jun 2, 2007 10:08 AM
Last Post: akb825
  trouble with structure pointers ferum 2 2,904 Mar 24, 2006 05:57 PM
Last Post: ferum
  Problems With Arrays of Pointers Nick 8 3,904 Sep 27, 2005 04:53 PM
Last Post: Zekaric
  pointers to structs Atomical 13 4,919 Jul 17, 2005 10:55 AM
Last Post: Steven