Delphi XE2 FireMonkey HD Applications Raise Runtime Error 231 on Mac OS X

October 5th, 2011

Many users have encountered the problem when running FireMonkey HD Applications on Mac OS X without 3D hardware HAL. When this application is run, it either freezes or produces the following error:

We have researched this problem and found a solution from Embarcadero. If a Mac OS X computer has no 3D hardware HAL, you need to set the global variable FMX.Types.GlobalUseHWEffects to False. Example:

However, this solution is not a panacea. Sometimes HD Applications continue to freeze or raise the error even with FMX.Types.GlobalUseHWEffects set to False. In this case, you need to modify the FMX.Filter.pas unit. Do the following:

  1. Copy the FMX.Filter.pas and files from the $(BDS)sourcefmx folder to your project folder.
  2. In the files copied to your project folder replace the code of the FilterByName and FilterClassByName functions with the following code:
  3. Add the FMX.Filter unit to the USES section of your project:

After such modifications your applications will run successfully on Mac OS X without 3D hardware HAL; however, 3D effects will not be available for it.

This trick is not required for Rad Studio XE2 with Update 3 and higher.

6 Responses to “Delphi XE2 FireMonkey HD Applications Raise Runtime Error 231 on Mac OS X”

  1. The Best Photo Software Says:

    You’re in point of fact a just right webmaster. The website loading pace is amazing. It kind of feels that you are doing any distinctive trick. Also, The contents are masterpiece. you’ve done a great task on this subject!

  2. AndreyP Says:

    Thanks for your kind words. We are trying our best.

  3. Nefful products Taiwan Says:

    I enjoy, cause I found just what I was looking for. You have ended my 4 day long hunt! God Bless you man. Have a great day. Bye

  4. AndreyP Says:

    Thanks for your praising comment! Glad to be helpful.

  5. Softtouch Says:

    Delphi Tokyo does the same! And the filter.pas is completely different code now, no idea what to fix.

  6. DAC Team Says:

    Hello, Softtouch!
    We did not have similar problems on Delphi Tokyo, so it’s difficult for us to recommend something. If we find a solution to your issue, we will definitely write how to solve it.

Leave a Comment