Odd behaviour; my App compiles and runs fine in both 64 bit and 32 bit.
But closing the main window on the 64-bit version, causes a hang,
whilst the 32-bit version closes and quit just fine.
App.open has autoquit = true and cancelclose has a quit.
Please try it. It wouldn’t surprise me if calling Quit in CancelClose triggers another CancelClose event… or at least, don’t call Quit when AppQuitting=True
@Greg O’Lone : I tried a few variations and removing the close and cancelclose events from the App,
and retaining a quit in the Main window’s CancelClose worked.
It’s a tad confusing but at least it quits now in both 32-bit and 64-bit.
Thanks Greg
As Greg has advised you, calling quit from cancelClose is not the correct construct. CancelClose needs to return a Boolean, then the app closes. By leaving it the way you have it, you are asking for more trouble down the road.