#1 2018-10-15 17:41:04

ulrichd
Member
Registered: 2018-07-30
Posts: 16

Invalid OSVersion results

Do I have to call a function before I can use OSVersion or OSVersionText?

I'm running an application on Windows 10 Pro, yet OSVersionText gives me "Windows 8 64bit (6.2.9200)".  winver.exe says "Version 1803 (OS Build 17134.286)".  mORMot is at 1.18.4847.

Offline

#2 2018-10-15 21:28:36

mpv
Member
From: Ukraine
Registered: 2012-03-24
Posts: 1,571
Website

Re: Invalid OSVersion results

You shouldn't. It's retrieved inside initialization section of SynCommons.pas by call to RetrieveSystemInfo. You can debug there and look what is wrong.

Offline

#3 2018-10-16 07:08:29

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 14,659
Website

Re: Invalid OSVersion results

There is no bug in SynCommons, but the project should link the metadata resource to include the Windows 10 flag.
Otherwise, Windows 10 is not detected and reported by the Windows API as Windows 8 - for compatibility purposes.
https://docs.microsoft.com/en-us/window … indows-8-1
It is a Microsoft/Windows feature! sad

For instance, use {$R Vista.res} as available in our repository.

Offline

#4 2018-10-16 17:56:22

ulrichd
Member
Registered: 2018-07-30
Posts: 16

Re: Invalid OSVersion results

Thanks ab.  That did the trick!

Was that mentioned anywhere in the mORMot docs?  Looks like I missed that...

Offline

Board footer

Powered by FluxBB