Recent

Author Topic: Delima, can't get Lazarus to run after multiple reinstallations!  (Read 4039 times)

1HuntnMan

  • Sr. Member
  • ****
  • Posts: 288
  • From Delphi 7 to Lazarus
    • NewFound Photo Art
Hi, I used to program years ago back in the late 80's & 90's. Started out with Clipper then moved to Delphi 5 then 7. I was in a conversation with a friend which ended up him asking me to write a system to manage his business. I'm retired and always looking for a new project. So, researching decided to use Lazarus/FPC. Starting out, was easy-pezy but can't get anything to run after awhile. What happens, I can design a main form with a main menu plus speed-buttons at the top. Running this, great. Design a second form that would be contacts mgt. Running this, found that launching the second form from the main caused an issue just because my design was more like Delphi so did some reading. Basically, adding the second form to my project puts this unit into the project file and creates the form in the project file when this to me isn't necessary because I can do this in the main form. Anyway, figured this all out and got the second form launching for awhile.  But, after about a week, Windows 10 doesn't recognize Lazarus and I have to run as Administrator although my login is as an administrator. But, every time I launch Lazarus Windows pops up, "Do you want this app from an unknown  Windows to run this program from an unknown publisher to make changes to this device?"  So, I've removed Lazarus and reinstalled multiple times.  After a 3-4 times starting up Lazarus I get an error that it can't load my project and to start a new project, see the attached.  So, I've been starting a new project and reloading my units every time, give me a break! I would be glad to share the source of the Project file and the 2 units I've created thus far if that would help with anyone to figure this out.  I also read that a few folks have installed both the 32 bit and the 64 bit versions of Lazarus to avoid memory issues.  I did that yesterday and back to the same issues after starting up Lazarus after just 3 times. I has a problem with my Project file and I have to start a new project and add my 2 units into the new Project. 
Tks & advise,
Donald aka 1HuntnMan

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 10812
  • Debugger - SynEdit - and more
    • wiki
Re: Delima, can't get Lazarus to run after multiple reinstallations!
« Reply #1 on: October 10, 2023, 02:35:12 pm »
I don't know why Windows would ask "make changes to the device"... Did you install any 3rd party add on? The installer does ask that question....

About the dialog "can't open project" => Did you at some time downgrade your Lazarus? Then that can happen. The fileformat changed, and while the new IDE can write compatible project files (lpi), it does (afaik) only if you specifically enable that.

Try the Lazarus 3.0-RC1 (or in a few days the RC2)

Also note, maybe something in your settings got messed up. Re-installing does not delete the settings.
Well, during installation you can set a checkbox to clear old settings.
Settings are in the "primary config path" => see menu: View > Ide Internals > About Lazarus.
(back them up, or just delete them)

1HuntnMan

  • Sr. Member
  • ****
  • Posts: 288
  • From Delphi 7 to Lazarus
    • NewFound Photo Art
Re: Delima, can't get Lazarus to run after multiple reinstallations!
« Reply #2 on: October 10, 2023, 04:27:23 pm »
Martin-FR,
   Thanks for the reply! I haven't installed any 3rd party add-ons for anything to do with Lazarus. So, that's not an issue. For your 2nd question about downgrading Lazarus? Like I mentioned I did downgrade from 64-bit to 32-bit but this eventually started having memory leaks or something. So, reading on this forum, someone mentioned installing both the 32-bit and the 64-bit versions of Lazarus in different directories, so did that, installed 32-bit in a folder named Lazarus32 and 64-bit in Lazarus64. That seemed to work fine until yesterday afternoon and winders started having problems with this stupid question do you want to make changes to your device. So, I'm going to start all over uninstall both Lazarus versions. Then as you suggested I'm going to clear out all old settings by deleting all the settings in the "primary config path" => see menu: View > Ide Internals > About Lazarus.  As far as reinstalling Lazarus 64 after clearing out both the 32 and 64 bit versions I have both the 64 bit install exe's: lazarus-2.2.6-fpc-3.2.2-win64.exe and lazarus-3.0RC1-fpc-3.2.2-win64.exe. After I get everything cleared out totally so there's nothing of Lazarus on this computer then I'll install the 64bit 3.0-RC1 because that's the latest.  I'm thinking something got messed up when I first started and was in the beginner state. Still a beginner but it's been a week. I also have all my old systems that I wrote way back long time ago in Delphi and have Delphi 7 installed on this computer plus all the code but it's all on the C-Drive and all my Lazarus programming is on E-Drive although Lazarus is installed on Drive C.  Don't think where I installed Lazarus should make a difference but it's on C because I think that's where Lazarus wants to be. The only reason I have Delphi 7 installed is just to refresh my memory once in awhile on how I did certain things while I'm programming with Laz.
Thanks for your suggestions, I hope I can get this cleared up from your suggestions. Have a good week and take care... Donald aka 1HuntnMan

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 10812
  • Debugger - SynEdit - and more
    • wiki
Re: Delima, can't get Lazarus to run after multiple reinstallations!
« Reply #3 on: October 10, 2023, 04:45:59 pm »
Downgrade isn't between 32 and 64 bit. But Lazarus 3.0 writes projects in a new format, and then 2.2.6 can no longer open them (there is a setting in project options, I would need to look it up though).

Install location should indeed not matter.
But if you have several install make sure to do them as "secondary install" with their own config path.

dsiders

  • Hero Member
  • *****
  • Posts: 1348
Re: Delima, can't get Lazarus to run after multiple reinstallations!
« Reply #4 on: October 10, 2023, 05:40:50 pm »
Downgrade isn't between 32 and 64 bit. But Lazarus 3.0 writes projects in a new format, and then 2.2.6 can no longer open them (there is a setting in project options, I would need to look it up though).

Use the Project > Project Options > Miscellaneous settings to enable the "Maximize compatibility of project files" option.
Preview the next Lazarus documentation release at: https://dsiders.gitlab.io/lazdocsnext

440bx

  • Hero Member
  • *****
  • Posts: 5002
Re: Delima, can't get Lazarus to run after multiple reinstallations!
« Reply #5 on: October 10, 2023, 06:26:09 pm »
But Lazarus 3.0 writes projects in a new format, and then 2.2.6 can no longer open them (there is a setting in project options, I would need to look it up though).
Question: is there an option in Lazarus 3.0 to have it use the old format at all times so v2.2.6 (and hopefully prior) can still open the projects ?

Thank you for the help :)
(FPC v3.0.4 and Lazarus 1.8.2) or (FPC v3.2.2 and Lazarus v3.2) on Windows 7 SP1 64bit.

dsiders

  • Hero Member
  • *****
  • Posts: 1348
Re: Delima, can't get Lazarus to run after multiple reinstallations!
« Reply #6 on: October 10, 2023, 06:28:16 pm »
But Lazarus 3.0 writes projects in a new format, and then 2.2.6 can no longer open them (there is a setting in project options, I would need to look it up though).
Question: is there an option in Lazarus 3.0 to have it use the old format at all times so v2.2.6 (and hopefully prior) can still open the projects ?

Thank you for the help :)

It is a per-project setting. See reply #4.
Preview the next Lazarus documentation release at: https://dsiders.gitlab.io/lazdocsnext

440bx

  • Hero Member
  • *****
  • Posts: 5002
Re: Delima, can't get Lazarus to run after multiple reinstallations!
« Reply #7 on: October 10, 2023, 06:37:49 pm »
It is a per-project setting. See reply #4.
I should have realized that's what it meant.  Thank you pointing it out :)
(FPC v3.0.4 and Lazarus 1.8.2) or (FPC v3.2.2 and Lazarus v3.2) on Windows 7 SP1 64bit.

1HuntnMan

  • Sr. Member
  • ****
  • Posts: 288
  • From Delphi 7 to Lazarus
    • NewFound Photo Art
Re: Delima, can't get Lazarus to run after multiple reinstallations!
« Reply #8 on: October 15, 2023, 01:47:41 pm »
Well ...
After all the issues trying to write this system, I've finally figured out that I'm sure I have a memory issue with my computer itself. It runs apps like word processors like WPS Office or Notepad++. Delphi 7 won't run. Turbo Tax has an issue. This computer is a Dell All-in-One which is about 4-1/2 years old. Tried running PC Health Check --> Dell Support Assist and it won't run. I believe this computer has a memory issue. So, believe my issue is the computer because I don't see anyone having issues like I'm having in the Lazarus Community Forum. I have progressed from a Project with a main form. No problem running it. Add a second unit/form, no problem. But, when I add a third form, that's when I start having issues. Everything compiles without an issue but when I RUN, it bombs. If I shut down Lazarus and just run the executable, it doesn't launch. If I run the Task Manager and then run the executable, it appears for about 4 seconds and disappears.
So, ordered a new computer 2 days ago and it will be here tomorrow sometime. I'm almost positive that when I get everything loaded, I have have an external drive I have my whole system backup up with everything that matters. It's coming with Winders 11 so we'll see. Can't wait, LoL!

wp

  • Hero Member
  • *****
  • Posts: 12607
Re: Delima, can't get Lazarus to run after multiple reinstallations!
« Reply #9 on: October 15, 2023, 02:55:18 pm »
When there is strange, unexplainable behaviour of a computer, in particular with non-mainstream applications such as FPC or Lazarus, the first candidate is always the anti-virus protection. Turn off your anti-virus system for a test, or at least put the Lazarus/FPC folders and your project folders on the white-list.

dseligo

  • Hero Member
  • *****
  • Posts: 1461
Re: Delima, can't get Lazarus to run after multiple reinstallations!
« Reply #10 on: October 15, 2023, 03:05:02 pm »
When there is strange, unexplainable behaviour of a computer, in particular with non-mainstream applications such as FPC or Lazarus, the first candidate is always the anti-virus protection. Turn off your anti-virus system for a test, or at least put the Lazarus/FPC folders and your project folders on the white-list.

If I understood his post, he is having issues with other application too.
So there could be problem with his hardware (RAM and disk particularly) or OS.

 

TinyPortal © 2005-2018