Connecting Tech Pros Worldwide Help | Site Map

garbage collector c++

  #1  
Old August 19th, 2005, 01:55 PM
Charles T.
Guest
 
Posts: n/a
Hi,

looking for advance article/books on garbage-collected allocation.

thanks, Charles.


  #2  
Old August 19th, 2005, 02:15 PM
Frank Chang
Guest
 
Posts: n/a

re: garbage collector c++


Charles, Which compiler are you using gcc or Microsoft Visual
Studio.net 2003 or Microsoft Visual Studio.net 2005? .NET 2005 allows
the programmer to create objects that are swept away by the .NET
garbage collector. Unix gcc also has garbage collection. Each compiler
uses different types of garbage collection algorithms. But these
garbage collection alogorithms will not prevent all memory leaks. I
would recommend first reading about the general concepts of garbage
collection independent of the language (C++,Java/Scheme, etc).

  #3  
Old August 19th, 2005, 03:55 PM
Frank Chang
Guest
 
Posts: n/a

re: garbage collector c++


Charles, I should preface my earlier comments about Visual Studio .NET
2005 garbage collection by saying this only applies to managed C++
which is used by the .NET CLR. For unmanaged C++ code, it is still best
to define and implement C++ destructors.

  #4  
Old August 20th, 2005, 02:55 AM
Dave Townsend
Guest
 
Posts: n/a

re: garbage collector c++



"Charles T." <rosmarcha@yahoo.com> wrote in message
news:OAkNe.14975$yN.289529@wagner.videotron.net...[color=blue]
> Hi,
>
> looking for advance article/books on garbage-collected allocation.
>
> thanks, Charles.
>
>[/color]
I saw this one in my local bookshop, Garbage Collection : Algorithms for
Automatic Dynamic Memory Management Richard Jones, Rafael Lins

http://www.amazon.com/exec/obidos/tg...books&n=507846


  #5  
Old August 20th, 2005, 04:55 AM
Vijai Kalyan
Guest
 
Posts: n/a

re: garbage collector c++


http://www.iecc.com/gclist/GC-faq.html

Try this.

-vijai.

  #6  
Old August 24th, 2005, 05:05 PM
Dan Cernat
Guest
 
Posts: n/a

re: garbage collector c++



"Frank Chang" <FrankChang91@gmail.com> wrote in message
news:1124462795.321480.93260@z14g2000cwz.googlegro ups.com...[color=blue]
> Charles, I should preface my earlier comments about Visual Studio .NET
> 2005 garbage collection by saying this only applies to managed C++
> which is used by the .NET CLR. For unmanaged C++ code, it is still best
> to define and implement C++ destructors.
>[/color]

How would a C++ destructor help in the program below?

int main()
{
char* myArray = new char[100];

// delete[] my array; // commented out
return 0;
}

Duh!

dan



Closed Thread


Similar Threads
Thread Thread Starter Forum Replies Last Post
When to use a garbage collector? Carlo Milanesi answers 46 June 27th, 2008 05:47 PM
A garbage collector for C++ Mingnan G. answers 13 April 24th, 2006 01:35 PM
A garbage collector for C++ lelandguo@yahoo.com.cn answers 2 April 22nd, 2006 04:15 AM
Forcing the garbage collector to run IcedCrow answers 4 November 20th, 2005 01:58 AM
When is garbage collector for C++ is going to be a standard? pachanga answers 10 July 23rd, 2005 12:07 AM