www.sdlsuite.com Forum Index www.sdlsuite.com
Discussion of technical aspects of the SDL Component Suite
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

GenerateCPUID / 64bit target platform

 
Post new topic   Reply to topic    www.sdlsuite.com Forum Index -> BasePack
View previous topic :: View next topic  
Author Message
jdiefen



Joined: 16 Apr 2008
Posts: 8

PostPosted: Thu Aug 08, 2013 2:37 pm    Post subject: GenerateCPUID / 64bit target platform Reply with quote

Hello Hans,
I use the GenerateCPUID function with Delphi XE2 + SDL Version 10.2. All is OK when I compile in 32-bit. But if I select 64bit as target platform I get runtime errors (access violation).
I tried to use your example CPUINFO but found only code for Delphi-6 and -7.
Is GenerateCPUID not supporting Win 64 bit?

Thank you
Joachim
Back to top
View user's profile Send private message
jdiefen



Joined: 16 Apr 2008
Posts: 8

PostPosted: Fri Mar 07, 2014 9:46 am    Post subject: Generate CPUID Reply with quote

Can Generate CPUID be used with Win 64 compilations?
Nothing new?
Back to top
View user's profile Send private message
kbailey



Joined: 23 Nov 2011
Posts: 4

PostPosted: Wed Jun 11, 2014 12:56 am    Post subject: CPUID Reply with quote

I am also experiencing this problem with XE5. It works fine for 32 bit, but not 64 bit.
Back to top
View user's profile Send private message
kbailey



Joined: 23 Nov 2011
Posts: 4

PostPosted: Sat Jun 14, 2014 12:22 am    Post subject: Reply with quote

Hans,

The exception is happening here:

function ExecuteCPUID: TCPUIdRec; assembler;
...
{$IFDEF CPUX64}
asm
PUSH RBX
PUSH RDI
MOV RDI, RAX
MOV RAX, CPUID_EAX
DW $A20F
STOSD <<<<<<<< Crying or Very sad
MOV RAX, RBX
...
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    www.sdlsuite.com Forum Index -> BasePack All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group