On 13/06/13 19:45,
Hellho...@web.de wrote:
> Hmm strange, I've run the same code on my other PC, with and without
> tear down of the surface. Anything is working fine without
> any exception. Tomorrow I will check the other PC again with same
> version of ADT, NDK and MinGW ... Up to this point, thanks
> for your help.
On Android you do have to destroy the context --- the context, surface
etc are all reference counted and the EGL system won't shut down cleanly
unless you tidy up scrupulously. (If it doesn't shut down cleanly it
won't start up cleanly again.)
The main thing that comes to mind for me is that it's probably worth
double checking that you're using the new value of m_nativeWindow that's
given to you by APP_CMD_INIT_WINDOW. If you're not, that would explain
the heap corruption (because the window gets destroyed after
APP_CMD_TERM_WINDOW is called).
--
┌─── dg@cowlark.com ─────
http://www.cowlark.com ─────
│
│ "Home is where, when you have to go there, they have to take you in."
│ --- Cordelia Naismith (via Robert Frost)