Paul Ishenin wrote:
01.03.2011 19:29, Jonas Maebe wrote:
That sounds very much like badly written code.
For simplicity we had the next code:

GetMem(SomeArray, Count * SizeOf(ArrayCell))

if SomeArray <> nil then DoSomeLogic;

DoSomeLogic ... with a Count = 0, right? or was Sizeof(...) = 0? :-)

Micha
_______________________________________________
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel

Reply via email to