Testing
https://github.com/RRUZ/tsmbios/tree/master/Samples%20Lazarus, the most commons errors are:
1. Missing uSMBIOS.pas in the project or in the correct directory.
2. Missing uSMBIOS unit in Uses clause:
3. Range check error in set constructor or duplicate set element on line (uSMBIOS.pas):
SMBIOS_INTERMEDIATE_ANCHOR_STRING_VALUE = [$5F, $44, $4D, $49, $5F];
Just ignore that line.
The SMBIOS_INTERMEDIATE_ANCHOR_STRING_VALUE const is not used anywhere.
// SMBIOS_INTERMEDIATE_ANCHOR_STRING_VALUE = [$5F, $44, $4D, $49, $5F];
4. A wrong property in code lead to errors (MemoryDeviceInfo.dpr):
- Error: (5038) identifier idents no member "MemoryDeviceInformation"
- Error: (5067) Cannot find an enumerator for the type "<erroneous type>"
To solve, just change MemoryDevice
Information to MemoryDevice
Info:
for LMemoryDevice in SMBios.MemoryDeviceInformation do
for LMemoryDevice in SMBios.MemoryDeviceInfo do