Back to home page

DOS ain't dead

Forum index page

Log in | Register

Back to the forum
Board view  Mix view

real mode memory management question (Developers)

posted by Japheth Homepage, Germany (South), 24.08.2008, 21:03

> 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:

Back to the forum
Board view  Mix view
22049 Postings in 2034 Threads, 396 registered users, 153 users online (0 registered, 153 guests)
DOS ain't dead | Admin contact
RSS Feed
powered by my little forum