Dear hecker,<br><br>You asked: <br><br>>So can we be always sure that memory block returned by malloc is contiguous ? <br><br>My understanding is, Yes. You can actually be denied a memory allocation (out of memory) if there is not a large enough contiguious block available.<br><br>Memory fragmentation is a somewhat complicated issue since compilers and operating systems handle this differently. For instance on some platforms you can use third party heap management systems that will specifically address memory fragmentation.<br><br>Also the nature of your application certainly may increase your exposure to this issue, for instance server processes that are expected to run unattended for long periods of time without being shut down.<br><br>"But, that's just my opinion... I could be wrong".<br>-pete