# Mac OS "Access Violation"

**URL:** <https://forum.castle-engine.io/t/mac-os-access-violation/1197>\
**Category:** Uncategorized\
**Created:** [May 19, 2024, 3:41pm UTC](https://forum.castle-engine.io/t/mac-os-access-violation/1197 "2024-05-19T15:41:05Z")\
**Posts on this page:** 1\
**Showing post:** 8

<div class="post-metadata">

**Author:** ![michalis](https://forum.castle-engine.io/user_avatar/forum.castle-engine.io/michalis/32/3_2.png) [@michalis](https://forum.castle-engine.io/u/michalis)\
**Post date:** [June 29, 2024, 8:53pm UTC](https://forum.castle-engine.io/t/mac-os-access-violation/1197/8 "2024-06-29T20:53:55Z")

</div>

Sorry for long delay – I understand the error, but to investigate and reliably fix I need an access to macOS with different screen settings. I’m looking how to organize it, it takes a while 🙂

For what it’s worth, it works correctly for me with my current (and single) monitor OK. But I cannot test with second monitor, or a different monitor – because the macOS I use is a remote machine provided by [https://www.macstadium.com/](https://www.macstadium.com/) . It’s a great way to use mac (and share it with a team, see [old blog post about it](https://castle-engine.io/wp/2022/05/29/huge-improvements-for-macos-users-macos-binary-beta-release-cocoa-backend-for-tcastlewindow-automatic-running-and-packing-using-appbundle-access-to-macos-thanks-to-macstadium/) ), it has served us well… but the limitation is that I don’t really have a physical mac, I cannot swap monitors to which it is connected.

Below is a screenshot how it – correctly – looks for me.

I will get back to this thread once I managed to reproduce and fix the scaling problem, have patience with me please 🙂 (And if you’d like to help, the hint is that the bug is most likely inside Cocoa + TCastleWindow code, in file [castle-engine/src/window/castlewindow\_cocoa.inc at master · castle-engine/castle-engine · GitHub](https://github.com/castle-engine/castle-engine/blob/master/src/window/castlewindow_cocoa.inc) . We most likely miss scaling there by some per-monitor value.)

 ![obraz](https://forum.castle-engine.io/uploads/default/original/2X/8/89722a4067f86ce8594067c849cbba4801211b31.jpeg)

---

_[View the full topic](https://forum.castle-engine.io/t/mac-os-access-violation/1197)._
