GM causing silent crash
Posted: Tue Jan 18, 2022 3:43 am
Hi all,
just spent a couple of days figuring out why a stack i was working on just stopped working...
There are multiple nested groups on several cards and I'd laid out everything with the geometry manager.
Each card has a revUpdateGeometry in it's preOpenCard handler to ensure geometry is always updated - this worked well and provided a fully adaptive interface.
However i redesigned the interface and move some objects and groups around - the app then just stopped working - in particular, some data supposed to be loaded from database on going to card just stopped happening.
I finally figured out that this is because revUpdateGeometry was called before the data retrieval handler and moving the interface objects must have caused issues with GM rules - confirmed by running revUpdateGeometry in the messageBox and getting a non-specific error. Re-setting all GM rules fixed the error.
The question is that since the GM does not seem to raise exceptions where GM rules fail and this leads to halt in script execution, does warrant a bug report? Or is this known/anticipated behaviour?
Sure could have saved a whole lot of time if i had any indication the GM rules were the reason the data wasn't being loaded... but no errors were being generated......
Thanks,
Stam
just spent a couple of days figuring out why a stack i was working on just stopped working...
There are multiple nested groups on several cards and I'd laid out everything with the geometry manager.
Each card has a revUpdateGeometry in it's preOpenCard handler to ensure geometry is always updated - this worked well and provided a fully adaptive interface.
However i redesigned the interface and move some objects and groups around - the app then just stopped working - in particular, some data supposed to be loaded from database on going to card just stopped happening.
I finally figured out that this is because revUpdateGeometry was called before the data retrieval handler and moving the interface objects must have caused issues with GM rules - confirmed by running revUpdateGeometry in the messageBox and getting a non-specific error. Re-setting all GM rules fixed the error.
The question is that since the GM does not seem to raise exceptions where GM rules fail and this leads to halt in script execution, does warrant a bug report? Or is this known/anticipated behaviour?
Sure could have saved a whole lot of time if i had any indication the GM rules were the reason the data wasn't being loaded... but no errors were being generated......
Thanks,
Stam