On Tue, Mar 1, 2011 at 1:20 PM, Michael Van Canneyt <michael at freepascal.org> wrote: > Does it say in the Delphi docs that Nil is returned if Size=0 ? Not in the online ones: http://docwiki.embarcadero.com/VCL/en/System.GetMem -- Felipe Monteiro de Carvalho