Recent

Author Topic: Terminate Application  (Read 4942 times)

zyzmo

  • New Member
  • *
  • Posts: 41
    • My Website
Terminate Application
« on: February 11, 2016, 04:58:41 pm »
Hello everybody!

Since I started to use Lazarus IDE I don't know why the application process doesn't terminate!

I've tried to Close main form and use the "Application.Terminate;" command... but without success.

If anyone have an answer please Reply!

Thanks
Seya
<!-- Requirement Engineer -->

SymbolicFrank

  • Hero Member
  • *****
  • Posts: 1313
Re: Terminate Application
« Reply #1 on: February 11, 2016, 05:12:34 pm »
Could you show a bit of code?

balazsszekely

  • Guest
Re: Terminate Application
« Reply #2 on: February 11, 2016, 05:27:56 pm »
Possible causes:
   1. One or more threads are still running
   2. Deadlock between the main thread and a worker thread
   3. Some unloaded dll may also cause problems
Check with Task Manger(System Monitor) the CPU, Memory usage, Disk r/w.
Please tell us more about your application. If it's possible, attach a small project the demonstrates the issue.

zyzmo

  • New Member
  • *
  • Posts: 41
    • My Website
Re: Terminate Application
« Reply #3 on: February 15, 2016, 01:08:48 pm »
Could you show a bit of code?

Well, I just wrote : Application.Terminate inside OnClick button event...
Idk, but... I've begun another Project and the same trouble didn't happens.

i'm distrustful that it's something on my computer, because sometimes Lazarus freeze...

Thanks!
Seya
<!-- Requirement Engineer -->

Ñuño_Martínez

  • Hero Member
  • *****
  • Posts: 1186
    • Burdjia
Re: Terminate Application
« Reply #4 on: February 15, 2016, 06:12:57 pm »
With the information you give us, the only think I can say is that there's an infinite loop somewhere in your application.
Are you interested in game programming? Join the Pascal Game Development community!
Also visit the Game Development Portal

zyzmo

  • New Member
  • *
  • Posts: 41
    • My Website
Re: Terminate Application
« Reply #5 on: February 16, 2016, 05:22:31 pm »
With the information you give us, the only think I can say is that there's an infinite loop somewhere in your application.
I solved it... I just started a new application adding all the units of the older project without any change. Idk the root cause, but now my project is running fine;

Thanks
<!-- Requirement Engineer -->

Ñuño_Martínez

  • Hero Member
  • *****
  • Posts: 1186
    • Burdjia
Re: Terminate Application
« Reply #6 on: February 16, 2016, 07:51:41 pm »
Weird...  %)
Are you interested in game programming? Join the Pascal Game Development community!
Also visit the Game Development Portal

 

TinyPortal © 2005-2018