Hello,
I have a fairly large Xojo app that has always worked fine until recently. I believe the last version I edited was with 2025r1 (possibly 2025r2). Now (using 2025r2.1 – though I’m not sure if the version is the cause) something suddenly stopped working.
A value that never caused any issues before now completely hides a View.
I’ve spent almost three days debugging, just trying to understand what’s happening, but I can’t find any real clue.
I then tried to reproduce the issue in a new, minimal project – but there the bug does not occur.
So I started stripping down my original project, removing code and features piece by piece until the issue disappeared.
The result: my test project and the stripped-down version of my original project look almost identical. However, in one the bug occurs, and in the other it doesn’t.
here is what actually happens vs. what should happen:
I have a Button that simply calls Window.Close on another window.
Inside that window there are two containers (I’m not sure if the containers are relevant for the bug).
The inner container has a computed property. In one project, the property’s setter suddenly gets called with value = 0. I have no idea what triggers this behavior. I also can’t see where the value 0 even comes from.
In another (very similar) project, this does not happen at all. I tried to reproduce the behavior from scratch in a minimal test project, but there it works fine and I cannot reproduce the issue.
So in short:
-
One project → the computed property setter is unexpectedly called with 0 when closing the window.
-
The test project (almost identical) → works fine, no unexpected setter call.
I may be overlooking something very obvious here, but I just can’t see it.
I’ve attached both projects for comparison.
Maybe someone can spot what I am missing?
Thanks!