Einzelnen Beitrag anzeigen

Benutzerbild von Luckie
Luckie

Registriert seit: 29. Mai 2002
37.621 Beiträge
 
Delphi 2006 Professional
 
#27

Re: Memory Optimizer

  Alt 21. Aug 2006, 14:52
SIZE_T ist ein unsigned Int64. Mach mal aus dem Rückgabedatentyp ein Int64. Vergiss es in Delphi ist es ein Cardinal.

Aber wen man sich mal die Hilfe durchliest:
Zitat:
On computers with more than 4 GB of memory, the MEMORYSTATUS structure can return incorrect information. Windows reports a value of -1 to indicate an overflow, while Windows NT reports a value that is the real amount of memory, modulo 4 GB. If your application is at risk for this behavior, use the GlobalMemoryStatusEx function instead of the GlobalMemoryStatus function.
Michael
Ein Teil meines Codes würde euch verunsichern.
  Mit Zitat antworten Zitat