[fpc-pascal] How to solve "variable does not seem to be initialized" compiler hint.

Graeme Geldenhuys graeme at mastermaths.co.za
Thu Nov 19 11:40:22 CET 2009


Zaher Dirkey wrote:
> 
> procedure ZeroMemory(Destination: Pointer; Length: DWORD);
> begin
>   FillChar(Destination^, Length, 0);
> end;

Out of interest, I would recommend you change DWORD to PtrUInt. DWORD is
limited two a 32bit value on 64bit systems.


Regards,
  - Graeme -

-- 
fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal
http://opensoft.homeip.net/fpgui/




More information about the fpc-pascal mailing list