H
HalcyonWild
Hi,
I installed the free version(command line only) of the digital mars c++
compiler.
It said it features a garbage collection mechanism, but there was no
documentation. I figured out that you have to extend the class
mentioned in gc.h file. But it does not compile. Does the compiler
automatically extend the gc classes, while compiling.
I tested for the memory leak by running main in a very long loop and
commenting out the delete statements. It does fail and exits with
unpredictable results. Sometimes, an illegal memory access error and
sometimes, just writes out garbage to the command line and terminates
without any error.
Please tell me, in short, how to use GC in digital mars compiler. I
will try to work my way around. I dont know if I am on the right track.
Thanks.
I installed the free version(command line only) of the digital mars c++
compiler.
It said it features a garbage collection mechanism, but there was no
documentation. I figured out that you have to extend the class
mentioned in gc.h file. But it does not compile. Does the compiler
automatically extend the gc classes, while compiling.
I tested for the memory leak by running main in a very long loop and
commenting out the delete statements. It does fail and exits with
unpredictable results. Sometimes, an illegal memory access error and
sometimes, just writes out garbage to the command line and terminates
without any error.
Please tell me, in short, how to use GC in digital mars compiler. I
will try to work my way around. I dont know if I am on the right track.
Thanks.