JimHawkins, he's not caring about how it should be done. He's complaining about something that simply doesn't work.
And the code he shows will compile and create something that starts. But it cannot be closed properly, no matter what version of AppGameKit you build it in. It will always hang on the close-by-click-on-X, or hang on its own if left open long enough.
If there are no Sync() calls at all, the app opens and closes (by click on X) without complaint.
If you put a single Sync() at the start of the app, it hangs/crashes when you try to close it.
His original complaint was somewhat justified. The
Hands on AppGameKit Basic book listed an example that did work in v1076 but doesn't work in v10815.
He took pictures of the two code examples in the book.
This one works just fine in all versions. But
this one worked in v1076 but no longer works.
Once that was cleared up, he went onto the 'issue' encountered by lots of people regarding the exactness (or lack of) of floating point representation (my words).
Then he tried adding a Sync() as the first line in his test code and it caused the hang/crash issue. This was something he came up with on his own, not from the book.
Since it clearly causes a problem and is not proper programming in AppGameKit to start with, it just shouldn't be done. And that really should be the end of this discussion.
Since the developers never expected anyone to do such a thing, since it serves no purpose at all, they didn't write it into the system.
I'm not trying to be nasty. But repeatedly going over the same point just to be arguing about it gets frustrating.
Cheers,
Ancient Lady
AGK Community Tester and AppGameKit Master