[IOS] Terminate application

This is the forum for miscellaneous technical/programming questions.

Moderator: 2ffat

[IOS] Terminate application

Postby Lena » Mon Nov 26, 2018 5:24 am

Hi.
How to force the application to close ios app?
Close();
Application->Terminate();
error not supported by the platform

On the forum for the delphi FMX:
Code: Select all
procedure TForm1.Button1Click(Sender: TObject);
begin
  Halt(0);
end;

but in C++ Builder error: use of undeclared identifier 'Halt'
Lena
BCBJ Master
BCBJ Master
 
Posts: 597
Joined: Sun Feb 06, 2011 1:28 pm

Re: [IOS] Terminate application

Postby rlebeau » Mon Nov 26, 2018 2:41 pm

Lena wrote:How to force the application to close ios app?


Closing the MainForm should suffice, just like on every other platform.

Lena wrote:On the forum for the delphi FMX:
Code: Select all
procedure TForm1.Button1Click(Sender: TObject);
begin
  Halt(0);
end;

but in C++ Builder error: use of undeclared identifier 'Halt'


Halt() is only available to Delphi, not to C++.
Remy Lebeau (TeamB)
Lebeau Software
User avatar
rlebeau
BCBJ Author
BCBJ Author
 
Posts: 1560
Joined: Wed Jun 01, 2005 3:21 am
Location: California, USA


Return to Technical

Who is online

Users browsing this forum: Exabot [Bot] and 22 guests