Hi
I have a frustrating problem occurring across all my apps, and I assume its some mistake I'm making in my coding approach. Any help much appreciated.
My apps work absolutely fine, but then intermittently (typically when returning from a long period of the app being paused / background state) I get this Java Runtime Exception:-
Object should first be Intialized (Map). Continue?
This is happening in all my activities and occurs for a variety of different variable types. A sample of the relevant code is :-
Sub Globals
Dim info As Map
End Sub
Sub Activity_Create(FirstTime AsBoolean)
Activity.LoadLayout("SummaryView")
info.Initialize
info=EstablishmentInterface.getEstablishmentFullInfo(Main.iyork_establishment_id,Null)
etc etc
Is there anything obviously wrong here? As you can see the very first thing I do after loading my layout in Activity_create is initiaze the info variable, however is there something I'm missing? My concern is that there are no errors when first launching etc, it requires the app to go into a long paused state before it manifests itself, so I assume its something to do with memory being reclaimed by another resource.
Have tried all sorts of workarounds but really want to get to the bottom of this. Any ideas? Can provide the complete code but its a huge app so don't want to complicate things!
Thanks
I have a frustrating problem occurring across all my apps, and I assume its some mistake I'm making in my coding approach. Any help much appreciated.
My apps work absolutely fine, but then intermittently (typically when returning from a long period of the app being paused / background state) I get this Java Runtime Exception:-
Object should first be Intialized (Map). Continue?
This is happening in all my activities and occurs for a variety of different variable types. A sample of the relevant code is :-
Sub Globals
Dim info As Map
End Sub
Sub Activity_Create(FirstTime AsBoolean)
Activity.LoadLayout("SummaryView")
info.Initialize
info=EstablishmentInterface.getEstablishmentFullInfo(Main.iyork_establishment_id,Null)
etc etc
Is there anything obviously wrong here? As you can see the very first thing I do after loading my layout in Activity_create is initiaze the info variable, however is there something I'm missing? My concern is that there are no errors when first launching etc, it requires the app to go into a long paused state before it manifests itself, so I assume its something to do with memory being reclaimed by another resource.
Have tried all sorts of workarounds but really want to get to the bottom of this. Any ideas? Can provide the complete code but its a huge app so don't want to complicate things!
Thanks