Recent

Author Topic: [SOLVED]BUG?? win8 lazarus 1.2.4/1.2.6 run projects twice  (Read 7790 times)

KiokoKenda

  • Newbie
  • Posts: 3
[SOLVED]BUG?? win8 lazarus 1.2.4/1.2.6 run projects twice
« on: October 21, 2014, 07:43:29 pm »
long time ago i left pascal in order to explore differents solutions.
this days i got back to lazarus as i used to do, but something wrong is going on.
when i execute my project i get this:
building goes well
a window with my project come up
after 10-15 seconds that window kill himself without a reason
a new instance with my project start where i have all the prject runing ok.

im working on a i3 running win8.1
already uninstalled lazarus 3-4 times, following istructions only 32 bit version,
same problem with 1.2.4 and 1.2.6 version of lazarus.
FPC 2.6.4
I cant find a solution or, maybe, a fix on a wrong setup (debug options enabled or not all the projects run twices, first for limited time 10-15 seconds, second all good)

pls help, it is frustrating to wait everytime to play the second instance of project .
ty
« Last Edit: October 29, 2014, 02:25:38 pm by KiokoKenda »

engkin

  • Hero Member
  • *****
  • Posts: 3112
Re: BUG?? win8 lazarus 1.2.4/1.2.6 run projects twice
« Reply #1 on: October 21, 2014, 08:54:19 pm »
Did you try to run your application outside Lazarus?

taazz

  • Hero Member
  • *****
  • Posts: 5368
Re: BUG?? win8 lazarus 1.2.4/1.2.6 run projects twice
« Reply #2 on: October 22, 2014, 05:24:26 am »
long time ago i left pascal in order to explore differents solutions.
this days i got back to lazarus as i used to do, but something wrong is going on.
when i execute my project i get this:
building goes well
a window with my project come up
after 10-15 seconds that window kill himself without a reason
a new instance with my project start where i have all the prject runing ok.


1st instance dies an uneventful death why?
The 2nd instance is started automatically or you start it manually after the 1st instance's death?

You should ask why it fails in the first place try to add some kind of logging to find out what is failing and if the same code works the second time what is different?
Good judgement is the result of experience … Experience is the result of bad judgement.

OS : Windows 7 64 bit
Laz: Lazarus 1.4.4 FPC 2.6.4 i386-win32-win32/win64

tr_escape

  • Sr. Member
  • ****
  • Posts: 432
  • sector name toys | respect to spectre
    • Github:
Re: BUG?? win8 lazarus 1.2.4/1.2.6 run projects twice
« Reply #3 on: October 22, 2014, 08:24:16 am »
Hello ,

I think you are using Avast Antivirus or like as this antivirus.
Did you check it?

Because lazarus creating a new process in the disk and if your antivirus looking for this operation it can be.

Good luck.

wp

  • Hero Member
  • *****
  • Posts: 11858
Re: BUG?? win8 lazarus 1.2.4/1.2.6 run projects twice
« Reply #4 on: October 22, 2014, 11:06:53 am »
This annoying feature is one of the reasons why I left Avast.

You can instruct Avast to ignore your folder with Lazarus projects (and its subfolders). I forgot the exact procedure how to do it, maybe "Settings" - "Antivirus" - "Exceptions" - "Add"

goldenfox

  • New Member
  • *
  • Posts: 47
Re: BUG?? win8 lazarus 1.2.4/1.2.6 run projects twice
« Reply #5 on: October 22, 2014, 11:29:57 am »
Not just Avast but other AV as well. They're trying to block gdb when compiling.

Eugene Loza

  • Hero Member
  • *****
  • Posts: 663
    • My games in Pascal
Re: BUG?? win8 lazarus 1.2.4/1.2.6 run projects twice
« Reply #6 on: October 22, 2014, 12:06:51 pm »
I've had those problems with Comodo free firewall. Changed it to Zonealarm free firewall and everything is fine.
I'm using AGV free antivirus - it never caused any conflicts with Lazarus.
My FOSS games in FreePascal&CastleGameEngine: https://decoherence.itch.io/ (Sources: https://gitlab.com/EugeneLoza)

marcov

  • Administrator
  • Hero Member
  • *
  • Posts: 11383
  • FPC developer.
Re: BUG?? win8 lazarus 1.2.4/1.2.6 run projects twice
« Reply #7 on: October 22, 2014, 01:10:41 pm »
Making exceptions for the Lazarus/FPC dirs usually also has a considerable performance benefit.

KiokoKenda

  • Newbie
  • Posts: 3
Re: BUG?? win8 lazarus 1.2.4/1.2.6 run projects twice (Solved)
« Reply #8 on: October 22, 2014, 06:04:13 pm »
tyvm guys, as you said, i had avast antivirus  running on my pc, just taking him off all goes back to good.

Did you try to run your application outside Lazarus?
yes i did.

1st instance dies an uneventful death why?
The 2nd instance is started automatically or you start it manually after the 1st instance's death?

You should ask why it fails in the first place try to add some kind of logging to find out what is failing and if the same code works the second time what is different?
yes, 2nd instance is started automatically after the 1st's death.

 

TinyPortal © 2005-2018