Memory free lazarus / 21-General ---------------------------------------------------------------------- Dzandaa · 2021-07-15 18:43 Hi everybody, New to pascal Lazarus. Using Lazarus 2.0.12 Is there a way to know how much free memory is available in a program (to create a new Bitmap for example). I tried with GetHeapStatus and GetFPCHeapStatus with no great results Is there other procedure/functions to do that? Thank you. ---------------------------------------------------------------------- MarkMLl · 2021-07-15 19:01 No, because almost all OSes implement virtual memory these days so in principle have an "infinite" amount of memory available. There might be OS-specific ways of asking the maximum size of virtual memory, but you've not told us what you're using. See e.g. https://www.freepascal.org/docs- html/current/rtl/system/getheapstatus.html MarkMLl ---------------------------------------------------------------------- Dzandaa · 2021-07-16 08:11 Thank you. I'm writing a graphic program compatible on Mac, Linux and Windows, so that's the problem Thanks anyway.