Please follow the steps below:
- Create New
Firemonkey Moblie Application - Add
TGeustureManagercomponent to the Form Add 2
TButtoncomponents to the Form- Button1.Text: "Button1: Do something..."
- Button2.Text: "Button2: Exit Application..."

Double click on Button2 Component and write the following code for
OnClickEvent:procedure TForm1.Button2Click(Sender: TObject); begin if MessageDlg('Are you sure you want to Exit?', TMsgDlgType.mtWarning, [TMsgDlgBtn.mbYes, TMsgDlgBtn.mbNo], 0) = mrYes then SharedActivity.finish; end;- Run the application in debug mode.
on the device, click the button 2, then click yes to the popped up message. An exception will appear:

Why is this exception raised?
I thought it is related to unused TGeustureManager component. but NO it is NOT:
- If you open the
LocationDemo project that comes with Delphi xe5. - Add
TButtoncomponent toLocationLabel as shown in the image below:
- Add the same code as above to
OnClickEvent. - Run the application, and click on Button5, you will get the same exception.
Is this a bug should I report? or am I doing something wrong?
TList<>rather than the oldTList) but now theXSuperObjectlibrary does this when parsing a file (which is a correctly formatted JSON file in the correct location). - Jerry Dodge