ACCESS VIOLATION in Delphi 11.2

Viewing 13 posts - 1 through 13 (of 13 total)
  • Author
    Posts
  • #71058
    MetroFX
    Participant

    I 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.
    #71060
    Lasse
    Participant
    #71142
    Support
    Keymaster

    Hello!
    The AlphaControls package v17 has been released today, the issue has been solved there.

    #71196
    MetroFX
    Participant

    Unfortunately, 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?

    #71199
    Support
    Keymaster

    Hello
    I need more information about your project with error.
    Maybe you can make a demo where the error may be repeated?

    #71290
    MetroFX
    Participant

    I 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.
    #71295
    Lasse
    Participant

    Have you tried to recreate your project file? If it works, you can compare what is causing the issue.

    #71311
    MetroFX
    Participant

    Nothing 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
    Winter2003

    #71312
    Lasse
    Participant

    Sounds like an ASLR (Address Space Layout Randomization) issue. Have you tried to set if False in linker options?

    #71315
    MetroFX
    Participant

    Can you point out exactly where I should change it?

    #71317
    Lasse
    Participant

    Building > Delphi Compiler > Linking > Support address space layout randomization (ASLR)

    #71318
    MetroFX
    Participant

    You 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.

    #71319
    Lasse
    Participant

    Setting 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…

Viewing 13 posts - 1 through 13 (of 13 total)
  • You must be logged in to reply to this topic.