What we need is to access the stack segment of the application.

This Garbage Collector runs for an application and uses the overloaded new operator.
This collector is in c++ for WinXP environment using vc++ compiler.

Also, we need to divide the heap into user defined size. Is there any way to do that?

Thanks in advance.