NewMemoryBlock

From REALbasicWiki

Jump to: navigation, search
Overall article skill Skill ranges from beginner (green) to expert (red)

NewMemoryBlock returns a MemoryBlock of the specified size, if possible. Otherwise, it returns nil.

[edit] Prototype

Function NewMemoryBlock(size as Integer) as MemoryBlock

[edit] Sample Code

dim m as MemoryBlock = NewMemoryBlock(1024)
if m <> nil then
//proceed apace
else
//NewMemoryBlock failed
end if
Personal tools
related