Recent

Author Topic: How to kill Lazarus under Windows 10?  (Read 1080 times)

domasz

  • Sr. Member
  • ****
  • Posts: 434
How to kill Lazarus under Windows 10?
« on: March 02, 2023, 09:22:50 pm »
Lately Lazarus and Avast are not cooperating nicely and every one and then Lazarus freezes. Then I just kill it, all windows close, but one process "lazarus.exe" is still running in the background and is unkillable in Task Manager (access denied).
Because of this process I cannot start Lazarus again and I need to restart Windows to use Lazarus. But I don't want to restart Windows every time this happens.
How to kill that lazarus.exe?

Thaddy

  • Hero Member
  • *****
  • Posts: 14359
  • Sensorship about opinions does not belong here.
Re: How to kill Lazarus under Windows 10?
« Reply #1 on: March 02, 2023, 09:26:09 pm »
Better ask how to report a false positive issue to Avast....
(I still wonder why people are using extra virus protection when Windows comes with at this point in time the best one for free...) Hey, it is 2023!
« Last Edit: March 02, 2023, 09:27:48 pm by Thaddy »
Object Pascal programmers should get rid of their "component fetish" especially with the non-visuals.

Red_prig

  • Full Member
  • ***
  • Posts: 143
Re: How to kill Lazarus under Windows 10?
« Reply #2 on: March 02, 2023, 09:26:46 pm »
Download Process Explorer

domasz

  • Sr. Member
  • ****
  • Posts: 434
Re: How to kill Lazarus under Windows 10?
« Reply #3 on: March 02, 2023, 09:44:42 pm »
Better ask how to report a false positive issue to Avast....
(I still wonder why people are using extra virus protection when Windows comes with at this point in time the best one for free...) Hey, it is 2023!
I doubt Windows has a good protection. I have used Avast since Windows XP and it saved me many times.

balazsszekely

  • Guest
Re: How to kill Lazarus under Windows 10?
« Reply #4 on: March 02, 2023, 09:45:29 pm »
Lately Lazarus and Avast are not cooperating nicely and every one and then Lazarus freezes. Then I just kill it, all windows close, but one process "lazarus.exe" is still running in the background and is unkillable in Task Manager (access denied).
Because of this process I cannot start Lazarus again and I need to restart Windows to use Lazarus. But I don't want to restart Windows every time this happens.
How to kill that lazarus.exe?
I don't use avast, but it should be an exception/exclusion/white list somewhere in the settings. Add lazarus/fpc folder to the exception list. Lazarus will run much faster and without any issues.

domasz

  • Sr. Member
  • ****
  • Posts: 434
Re: How to kill Lazarus under Windows 10?
« Reply #5 on: March 02, 2023, 09:47:45 pm »
Download Process Explorer
It fails and show this message: "Error terminating. Access denied."

Red_prig

  • Full Member
  • ***
  • Posts: 143
Re: How to kill Lazarus under Windows 10?
« Reply #6 on: March 02, 2023, 09:49:29 pm »
Run as Admin :)

domasz

  • Sr. Member
  • ****
  • Posts: 434
Re: How to kill Lazarus under Windows 10?
« Reply #7 on: March 02, 2023, 09:52:12 pm »

Red_prig

  • Full Member
  • ***
  • Posts: 143
Re: How to kill Lazarus under Windows 10?
« Reply #8 on: March 02, 2023, 09:55:58 pm »
Well, congratulations to your antivirus program, he's still an asshole, I haven't seen this in practice for a long time.

domasz

  • Sr. Member
  • ****
  • Posts: 434
Re: How to kill Lazarus under Windows 10?
« Reply #9 on: March 02, 2023, 09:58:44 pm »

I agree. I detects every compiled exe as a potential threat. And now it did something to Lazarus and I cannot kill it. Even "taskkill /F /PID 20544" doesn't work.

marcov

  • Administrator
  • Hero Member
  • *
  • Posts: 11445
  • FPC developer.
Re: How to kill Lazarus under Windows 10?
« Reply #10 on: March 02, 2023, 10:00:52 pm »
Better ask how to report a false positive issue to Avast....
(I still wonder why people are using extra virus protection when Windows comes with at this point in time the best one for free...) Hey, it is 2023!
I doubt Windows has a good protection. I have used Avast since Windows XP and it saved me many times.

Generally Windows internal Defender comes out on top of the tests. Anyway, maybe simply exclude the relevant directories in Avasts'  configuration?

Red_prig

  • Full Member
  • ***
  • Posts: 143
Re: How to kill Lazarus under Windows 10?
« Reply #11 on: March 02, 2023, 10:01:36 pm »
I also used lazarus along with avast, although it triggered for projects,but it did not detect as viruses

paweld

  • Hero Member
  • *****
  • Posts: 991
Re: How to kill Lazarus under Windows 10?
« Reply #12 on: March 02, 2023, 10:06:43 pm »
To unlock blocked processes I use: https://lockhunter.com/
Best regards / Pozdrawiam
paweld

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 9857
  • Debugger - SynEdit - and more
    • wiki
Re: How to kill Lazarus under Windows 10?
« Reply #13 on: March 02, 2023, 10:13:04 pm »
Not sure how to get to the locked process...

But, if you can use Lazarus 2.3 (the git main branch), then you can start lazarus with
Code: Text  [Select][+][-]
  1. --skip-checks=SingleInstance
The option can be specified in the "lazarus.cfg" file, instead of being passed as argument.

And it will not mind the running instance.

Lazarus has settings in Tools > Option, if to allow more than one instance. But even if allowed, it still creates the lock. And if that lock is hold by a dead instance, then no new instance can create another lock.

The above options prevents even the creation of the lock. But it's 2.3 only.

KodeZwerg

  • Hero Member
  • *****
  • Posts: 2049
  • Fifty shades of code.
    • Delphi & FreePascal
Re: How to kill Lazarus under Windows 10?
« Reply #14 on: March 03, 2023, 12:15:31 am »
In attachment is a "Lazarus.exe" killer program.
Beware, when you run it, Lazarus will be terminated without asking to save or such.

It is based on ZwTerminateProcess
« Last Edit: Tomorrow at 31:76:97 xm by KodeZwerg »

 

TinyPortal © 2005-2018