RRUZ / tsmbios

Library to access the SMBIOS using Object Pascal (Delphi, FPC).
https://theroadtodelphi.wordpress.com/
202 stars 72 forks source link

"uSMBIOS.pas(4040,66) Error: range check error in set constructor or duplicate set element" #15

Open pusuni opened 7 years ago

pusuni commented 7 years ago

Hi!

Amazing project !!

I've tried to compiled one of examples in Lazarus PASCAL and I get this error:

"uSMBIOS.pas(4040,66) Error: range check error in set constructor or duplicate set element"

in line:

SMBIOS_INTERMEDIATE_ANCHOR_STRING_VALUE = [$5F, $44, $4D, $49, $5F];

I understand it is not possible to put $F5 twice. What's the right values?

Thanks in advanced

JohnML1 commented 7 years ago

just impossible to use with:

Lazarus 1.9.0 trunk FPC 3.0.0 i386-win32-win32/win64

error: console_app.pas(21,35) Error: identifier idents no member "MemoryDeviceInformation"

same for Linux and Delphi 5

whats wrong??

giving up!!

RayBernard commented 6 years ago

I got this unit to compile by commenting out line 4040 // SMBIOS_INTERMEDIATE_ANCHOR_STRING_VALUE = [$5F, $44, $4D, $49, $5F];

The const SMBIOS_INTERMEDIATE_ANCHOR_STRING_VALUE is not actually used.

JernejL commented 4 years ago

I would suggest this line be removed, it's still causing problems in FPC.

doertel-uib commented 2 years ago

seems to work: //SMBIOS_INTERMEDIATE_ANCHOR_STRING_VALUE = [$5F, $44, $4D, $49, $5F]; SMBIOS_INTERMEDIATE_ANCHOR_STRING_VALUE : array [0 .. 4] of Byte = ($5F, $44, $4D, $49, $5F);