App is not coming up on second run

Shay

Well-Known Member
Licensed User
Longtime User
Now the problem is – which I cannot debug, since it is not happening with the debugger

I open the app,
Click on exit button, which is running only activity.finish

Run app again, it is not even showing first screen, I can see only black screen, with app name

If I add the ExitApplication command it is opening fine

If I try it with the debugger, when exit, the debug stay on, I need to press the stop
And when I play again, it is ok – I guess since I clicked the stop button in the debugger

I build the app from scratch, and still if I open the app, close it, open again, it will not load
Also without the debugger
 

Shay

Well-Known Member
Licensed User
Longtime User
While reducing the project to post it here
I think I found the problem

on main module
I had this:
Sub Activity_Create(FirstTime As Boolean)

If FirstTime Then
Activity.Finish
StartActivity(License)
End If

End Sub

so I removed the FirstTime if and it seems to work fine now
:signOops:
 
Upvote 0
Top