View Single Post
Old 26 July 2010, 05:15   #8
matthey
Banned
 
Join Date: Jan 2010
Location: Kansas
Posts: 1,284
The Amiga built in memory allocation functions are more friendly. They handle 0 bytes just fine. It wouldn't be that difficult to switch to them. exec/AllocVec() is especially easy to use. It tracks the size of the allocation making it easier to use than exec/AllocMem().

It's probably more polite to allocate without the MEMF_FAST flag to allow for users with no fast ram and that run out of fast mem. Just set MEMF_CLEAR if you want the memory cleared or MEMF_ANY (0L) if you don't need it cleared.
matthey is offline  
 
Page generated in 0.06182 seconds with 11 queries