real mode memory management question (Developers)
> Memory requested by malloc and later freed by free won't be given back to
> DOS instant and therefore you are out of ram pretty fast because the
> memory becomes only available again after the exe terminated?
>
> Can I somehow force to flush the memory to the operating system so I can
> request it again for other tasks?
Are you're talking about C/C++? There is no "standard" how they implement their heap management, so at best you can ask for information about how a certain compiler does handle this issue.
Usually there are extensions available - I vaguely remember dos_allocmem() - which allow to directly alloc memory from DOS, and which can be freed once you're done.
---
MS-DOS forever!
Complete thread:
- real mode memory management question - mr, 24.08.2008, 18:42 (Developers)
- real mode memory management question - Japheth, 24.08.2008, 21:03
- real mode memory management question - mr, 24.08.2008, 21:19
- real mode memory management question - Japheth, 24.08.2008, 21:27
- real mode memory management question - mr, 24.08.2008, 21:19
- real mode memory management question - rr, 24.08.2008, 23:17
- real mode memory management question - mr, 24.08.2008, 23:30
- real mode memory management question - rr, 24.08.2008, 23:42
- real mode memory management question - mr, 25.08.2008, 00:53
- real mode memory management question - Rugxulo, 25.08.2008, 03:53
- real mode memory management question - marcov, 25.08.2008, 10:34
- real mode memory management question - Rugxulo, 25.08.2008, 03:53
- real mode memory management question - mr, 25.08.2008, 00:53
- real mode memory management question - rr, 24.08.2008, 23:42
- real mode memory management question - mr, 24.08.2008, 23:30
- real mode memory management question - marcov, 25.08.2008, 10:51
- real mode memory management question - Japheth, 24.08.2008, 21:03