Help | Site Map
Connecting Tech Pros Worldwide
 
 
LinkBack Thread Tools
  #1  
Old August 19th, 2005, 01:55 PM
Charles T.
Guest
 
Posts: n/a
Default garbage collector c++

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
Default 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
Default 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
Default 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
Default 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
Default 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



 

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles