Subj : Re: the use of new; allocating memory To : borland.public.cpp.borlandcpp From : Andrue Cope Date : Wed Dec 10 2003 09:15 am Howie, > So, if I understand you correctly, my app by default has it's own HM built in via > the runtime library. Wow. This whole thing has been behind-the-scenes magic to me > and what actually happens when new is used. > Yes. > So the HM in my app should know how much memory is on my computer? > Maybe but it doesn't need to. It can just do what you do to it and keep asking for memory. If it eventually gets refused it can just pass the refusal back to you :) > If one were to write a memory checking program, you could in therory allocate all the memory on a computer to write and read data for checking purposes. > You wouldn't do it that way. The HM is a convenience. If you want to allocate directly from Windows you can use the API calls. Unfortunately the help system on my new 'puter is still confused so I can't find what they are. Basically think of the HM as being like a Chauffeur. You can do your own driving if you want :) -- Andrue Cope [Bicester, UK] .