- Put global variable re-initializations between #ifdef __ANDROID__,
as modules loaded by the IDE are meant to use the same application context.
This reinitialization code had been added since libraries do not get unloaded on Android.
(Will need to find a better solution to run the IDE *on* Android)
{
Application app;
+#ifdef __ANDROID__
// Clean up global variables
memoryInitialized = false;
pools = null;
TOTAL_MEM = 0;
OUTSIDE_MEM = 0;
#endif
+#endif
#ifdef _DEBUG
// printf("Using debug ecere runtime library\n");