#1 2017-03-26 17:01:25

arion2009
Member
Registered: 2017-03-26
Posts: 3

Application can not completely close.

I am studying mormet this few day, and I try to change the demo "09 - HttpApi web server" as a application used TForm insteal of console, when I execute it and after few operation, I close the application, but it still stay in background processes (in that case, I can not re-compile my application since the exe can not be overwrite), did any body meet this case? sorry for my poor english:)

Offline

#2 2017-03-27 03:15:27

arion2009
Member
Registered: 2017-03-26
Posts: 3

Re: Application can not completely close.

I am sure I already free the server.
What did i do? I just copy the Class TTestServer to a new project, place 2 button in a Tform, the first button will create the TTestServer and another button will free it, but even I free the TTestServer, and than close the application, it still running in background processes.
Please help .. since I have to solve this issue before I use it in a real project.

Offline

#3 2017-03-27 04:40:17

igors233
Member
Registered: 2012-09-10
Posts: 241

Re: Application can not completely close.

Do you have the latest mORMot version (nightly build)? What Delphi version are you using?
Can you send some sample code, sample 9 works as expected, it closes down after enter is pressed.

Offline

#4 2017-03-27 06:26:21

arion2009
Member
Registered: 2017-03-26
Posts: 3

Re: Application can not completely close.

@igors233,  I already found out the reason, it looks like the problem in my computer, since I copy this program to execute in another pc is ok. but thanks for your help

Offline

Board footer

Powered by FluxBB