Dear MicroEJ,
When i tried the example of ‘Simple Background Application Code’ in your document of <Application Developer’s Guide’ with the simulator of , i got an exception as:
=============== [ Initialization Stage ] ===============
=============== [ Converting fonts ] ===============
=============== [ Converting images ] ===============
=============== [ Launching on Simulator ] ===============
com.microej.wadapps.management.util.activitiesschedulerlowmemory SEVERE: Error showing activity.
Exception in thread “main” java.lang.OutOfMemoryError: MicroUI: Not enough room to allocate the Image’s native data.
- at java.lang.Throwable.fillInStackTrace(Throwable.java:79)*
- at java.lang.Throwable.(Throwable.java:30)*
- at java.lang.Error.(Error.java:10)*
- at java.lang.VirtualMachineError.(VirtualMachineError.java:10)*
- at java.lang.OutOfMemoryError.(OutOfMemoryError.java:20)*
- at ej.microui.display.ImageOutOfMemoryVisitor.callRun(ImageOutOfMemoryVisitor.java:35)*
- at ej.microui.display.ImageOutOfMemoryVisitor.callRun(ImageOutOfMemoryVisitor.java:16)*
- at ej.microui.display.ImageCreatorVisitor.callRun(ImageCreatorVisitor.java:51)*
- at ej.microui.display.Image.loadImage(Image.java:655)*
- at ej.microui.display.Image.createImage(Image.java:151)*
- at ej.microui.display.Image.createImage(Image.java:89)*
- at ej.style.image.DefaultImageLoader.getImage(DefaultImageLoader.java:25)*
- at ej.style.util.StyleHelper.getImage(StyleHelper.java:117)*
- at ej.widget.basic.Image.(Image.java:54)*
- at com.microej.app.desktopweather.page.WeatherPage.(WeatherPage.java:78)*
- at com.microej.app.desktopweather.page.WeatherPage.(WeatherPage.java:53)*
- at com.microej.app.desktopweather.widget.WeatherNavigator.(WeatherNavigator.java:61)*
- at com.microej.app.desktopweather.page.MainPage.createMainContent(MainPage.java:87)*
- at com.microej.app.desktopweather.page.MainPage.(MainPage.java:61)*
- at com.microej.app.desktopweather.Main.main(Main.java:72)*
- at com.microej.app.desktopweather.DesktopWeatherActivity.onStart(DesktopWeatherActivity.java:46)*
- at com.microej.wadapps.management.util.ActivitiesSchedulerLowMemory.show(ActivitiesSchedulerLowMemory.java:146)*
- at com.microej.wadapps.management.util.ActivitiesSchedulerLowMemory.setLauncher(ActivitiesSchedulerLowMemory.java:71)*
- at com.microej.wadapps.management.util.LaunchersManager.startCurrentLauncher(LaunchersManager.java:120)*
- at com.microej.wadapps.management.util.LaunchersManager.startFirstLauncher(LaunchersManager.java:99)*
- at com.microej.wadapps.management.util.LaunchersManager.internalStart(LaunchersManager.java:90)*
- at com.microej.wadapps.management.util.LaunchersManager.start(LaunchersManager.java:70)*
- at ej.wadapps.management.activators.DefaultManagementActivator.start(DefaultManagementActivator.java:83)*
- at ej.components.registry.impl.AbstractRegistry.start(AbstractRegistry.java:83)*
- at ej.components.registry.util.BundleRegistryHelper.startup(BundleRegistryHelper.java:52)*
- at MySandboxedApp.generated.MySandboxedAppEntryPoint.start(MySandboxedAppEntryPoint.java:15)*
- at MySandboxedApp.generated.BackgroundServicesStandalone.main(BackgroundServicesStandalone.java:13)*
- at java.lang.MainThread.run(Thread.java:836)*
- at java.lang.Thread.runWrapper(Thread.java:372)*
MyBackgroundCode: Hello Yang-Hae!
However you know i don’t get this exception with the simulation of , the output of which was simply as:
=============== [ Initialization Stage ] ===============
=============== [ Converting fonts ] ===============
=============== [ Converting images ] ===============
=============== [ Launching on Simulator ] ===============
MyBackgroundCode: Hello Yang-Hae!
Could you please advise me what would have affected this difference with the same application?
Thanks & Regards
YH Kwon