- This topic has 12 replies, 3 voices, and was last updated 1 year, 7 months ago by
Lasse.
-
AuthorPosts
-
December 7, 2022 at 12:43 pm #71058
MetroFX
ParticipantI have a problem compiling a Windows 64-bit program. Every time I try, I get the message:
Project Project1.exe exception class $C0000005 with message ‘c0000005 ACCESS_VIOLATION’.
When compiling Windows 32-bit everything is fine.
I am working on Windows 11 and Delphi 11.2
Please help as I don’t know how to deal with this error. In Delphi XE8 everything works OK.Attachments:
You must be logged in to view attached files.December 8, 2022 at 8:14 am #71060March 12, 2023 at 6:49 pm #71142Support
KeymasterHello!
The AlphaControls package v17 has been released today, the issue has been solved there.April 13, 2023 at 10:04 am #71196MetroFX
ParticipantUnfortunately, but version 17 did not help. I still get the same error when compiling 64bit. In the 32bit version it is OK. When I create a new 64bit project the compile error does not appear. What do I need to do so that on an existing project I can compile it in 64bit version?
April 16, 2023 at 8:42 am #71199Support
KeymasterHello
I need more information about your project with error.
Maybe you can make a demo where the error may be repeated?July 27, 2023 at 4:51 am #71290MetroFX
ParticipantI have attached a screenshot of the error while compiling in 64 bit. The problem is that the error only occurs in my old project. In the new ones, this problem is not present and everything compiles correctly.
Attachments:
You must be logged in to view attached files.July 27, 2023 at 8:51 am #71295Lasse
ParticipantHave you tried to recreate your project file? If it works, you can compare what is causing the issue.
August 4, 2023 at 5:49 pm #71311MetroFX
ParticipantNothing helps. The only thing I noticed is that the compilation problem occurs with some Skins. Below I give an example of those that are definitely generating the error. The others I have not checked. Here is the list:
Canvas dark (CS)
Blue waves (CS)
Custom BG 1 (CS)
Cold
AutumnSky
Beijing
BlueGauze
Deep
Winter2003August 5, 2023 at 7:07 pm #71312Lasse
ParticipantSounds like an ASLR (Address Space Layout Randomization) issue. Have you tried to set if False in linker options?
August 6, 2023 at 5:23 pm #71315MetroFX
ParticipantCan you point out exactly where I should change it?
August 9, 2023 at 11:20 am #71317Lasse
ParticipantBuilding > Delphi Compiler > Linking > Support address space layout randomization (ASLR)
August 13, 2023 at 7:29 am #71318MetroFX
ParticipantYou were right about ASLR. Setting the value to False helped and it now compiles with no problems in the 64 bit version. Thank you for your help.
August 13, 2023 at 12:33 pm #71319Lasse
ParticipantSetting it to false is only a temporary solution. It just shows that there are bugs in the code. For example there are pointers casted to Integer when those must be casted to NativeInt. I have fixed a lot of those but not all. I also have to still keep that setting false…
-
AuthorPosts
- You must be logged in to reply to this topic.