Finally I understand what's going on (I think).
In summary:
It is not well managed (by the compiler) the Try / Catch / End Try.
------------------
In detail:
The Activity_Create (Main Module) calls immediately, before loading a layout, a routine of an Activity Module. This, launches another procedure, in another Module (yes, it is twisted, I know) and this second routine tries to open a text file and, if not found, creates it.
The point is that, instead of using a FileExists, I used a try / catch. The Catch "ends" execution. I replaced it with a File.FileExists and everything works.
Try
mTranMap = File.ReadMap(AppDir, gTranFileName)
Catch
If Not(mTranMap.IsInitialized) Then
mTranMap.Initialize
End If
File.WriteMap(AppDir, gTranFileName, mTranMap)
End Try
("Crashes")
If File.Exists(AppDir, gTranFileName) Then
mTranMap = File.ReadMap(AppDir, gTranFileName)
Else
If Not(mTranMap.IsInitialized) Then
mTranMap.Initialize
End If
File.WriteMap(AppDir, gTranFileName, mTranMap)
End If
(Works fine)
-----------------
(I guess the color of the "generation window" changes in the event of subsequent installations of the app)
P.S. Using Debug (legacy) Catch works!!!
greetings
DAMN... i remember now only that an "empty" app did not work! But I am certain, however, about the Catch.
PS No, in that test I have done something wrong; now it works perfectly