Schwartz Engine

Schwartz Engine

About This

I develop Android Apps and games. I play board games and I am an experienced GM in warhammer Fantasy Role Play (1st and 2nd Ed). I am also painting and sculpting miniatures.
Yes that's right I am a freak - No mistake there. I am using this media to track my work and organise it a little.

Buuug Hunteeerrrh!

AppsPosted by Carsten Schwartz Sep 14, 2016 21:55
Beware when you have some code that draws in a graphical context of some kind that can be called from two different places at the same time or called twice so that the first call not is finished when the second is called.

I have been hunting for a bug that crashed my game and simply closed the App with no warning due to a construction like this. Use Locks objects combined with synchronize in your renderers, handlers or whatever to indicate if they are active and not must be called to create some kind of race condition. Anyway bug solved and the App has been enforced and is now more robust...

I got the solution and improved it at stack overflow.

And during this fixing process I revisited and fixed another annoying bug that have been irritating me, even though it is a small thing, that players not will see unless they where told. So all in all I'm almost ready...







  • Comments(0)//theengine.schwartzengine.com/#post5