I have a service that brought something to my attention....
What this does is check to see if the active flag has been set every 5 minutes. If not, it closes the app.
It works like a charm in debug & release compiles. No go in obfuscated.
So is this a bug or feature? I tracked down a similar problem with a class that uses the HttpUtils2 (JobDone) callback. Exact same scenario.
HTML:
Sub Process_Globals
Dim Active As Boolean = True
End Sub
Sub Service_Create
End Sub
Sub Service_Start (StartingIntent As Intent)
If Active = False Then
ExitApplication
Return ' I don't know if I need this, but ........
End If
Active = False
StartServiceAt("",DateTime.Now + 300 * 1000,True) ' check every 5 minutes
End Sub
Sub Service_Destroy
End Sub
What this does is check to see if the active flag has been set every 5 minutes. If not, it closes the app.
It works like a charm in debug & release compiles. No go in obfuscated.
So is this a bug or feature? I tracked down a similar problem with a class that uses the HttpUtils2 (JobDone) callback. Exact same scenario.