Recent

Author Topic: %&^%@ Windows 10 again!!!!  (Read 2766 times)

Badger

  • Full Member
  • ***
  • Posts: 144
%&^%@ Windows 10 again!!!!
« on: August 22, 2019, 10:05:49 am »
My computer installed the latest update to windows 10 and now when I try to open Lazarus, I get an error
'Error occurred at last start up while loading ............'
The 'Open Project again' doesn't work, nor does the 'Start with a new project'.  The .exe for that relates to the original project works fine.
Anybody got any suggestions?
« Last Edit: August 22, 2019, 10:27:00 am by Badger »
Badger
(A bad tempered, grumpy animal that sleeps most of the winter!)

If at first you don't succeed - you're running about average!

I'm using Windows 10 Lazarus v2.4.4  FPC 3.2.2   Win 32/64

marcov

  • Administrator
  • Hero Member
  • *
  • Posts: 11383
  • FPC developer.
Re: %&^%@ Windows 10 again!!!!
« Reply #1 on: August 22, 2019, 11:26:02 am »
You have excluded all relevant (lazarus/fpc/project) dirs from the antivirus?

Badger

  • Full Member
  • ***
  • Posts: 144
Re: %&^%@ Windows 10 again!!!!
« Reply #2 on: August 22, 2019, 12:57:10 pm »
Yes Avast has the exceptions, Windows is turned off.

Badger
(A bad tempered, grumpy animal that sleeps most of the winter!)

If at first you don't succeed - you're running about average!

I'm using Windows 10 Lazarus v2.4.4  FPC 3.2.2   Win 32/64

wp

  • Hero Member
  • *****
  • Posts: 11854
Re: %&^%@ Windows 10 again!!!!
« Reply #3 on: August 22, 2019, 01:08:54 pm »
Your description is not very clear: When you start the new Lazarus you get the mentioned error message? Then, when you close the message, Lazarus starts nevertheless? If it does: the menu item "Open Project again" (there is no such item, do you mean "Open Recent"?) does not work? What does "does not work" mean? Error message? Crash? Doing nothing? Menu item grayed? What do you mean with "Start with a new project"? I've never seen this menu item...

Please be precise when reporting errors. Nobody can read your mind.

Badger

  • Full Member
  • ***
  • Posts: 144
Re: %&^%@ Windows 10 again!!!!
« Reply #4 on: August 22, 2019, 01:35:55 pm »
When I click the Lazarus icon in the tray, the blue Lazarus start page opens.
The main empty IDE appears -  the Project Inspector is on the top but there are no Files or Required packages.  A message appears, Titled: Open Project  Text:An error occurred at last startup while loading C:\.........   .lpi!   Load this project again?
There are two buttons on the error message.  "Open Project again" and "Start with a new project"
Whichever button I click (and there is no visual feedback) Lazarus just terminates after about 8 seconds.  It also terminates after about 8 seconds if I do nothing.
Sometimes, if I click on any of the pages (Ide, Todo List, Project  inspector, etc) the words 'not responding' appear
 It seems to want to start my previous Project but can't and doesn't get the command to start a new project.
As I said in my original post, everything was working fine till I allowed the machine to update Windows.
« Last Edit: August 22, 2019, 01:48:56 pm by Badger »
Badger
(A bad tempered, grumpy animal that sleeps most of the winter!)

If at first you don't succeed - you're running about average!

I'm using Windows 10 Lazarus v2.4.4  FPC 3.2.2   Win 32/64

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 9791
  • Debugger - SynEdit - and more
    • wiki
Re: %&^%@ Windows 10 again!!!!
« Reply #5 on: August 22, 2019, 01:46:08 pm »
1) Do or did you try Lazarus 2.1 at any time?  A project saved with Lazarus from trunk has a new format, that can not be opened by the old Lazarus. (Though the new Lazarus has a setting that can be enabled to keep compatibility).

Though " 'Start with a new project'." does not sound like this...
Anyway just mentioned... In case.

2) Start lazarus with
lazarus.exe --debug-log=c:\laz.log

Then see if the log contains anything (attach it here)



Quote
The .exe for that relates to the original project works fine.
You mean another  "lazarus.exe" (the original from the installer?)
Or you mean your_project.exe ?

Badger

  • Full Member
  • ***
  • Posts: 144
Re: %&^%@ Windows 10 again!!!!
« Reply #6 on: August 22, 2019, 01:54:30 pm »
Sorry -  that wasn't clear either was it.  What I tried was to run the project's exe file from the File explorer.

Haven't tried 2.1, but did download RichMemo recently
Badger
(A bad tempered, grumpy animal that sleeps most of the winter!)

If at first you don't succeed - you're running about average!

I'm using Windows 10 Lazarus v2.4.4  FPC 3.2.2   Win 32/64

wp

  • Hero Member
  • *****
  • Posts: 11854
Re: %&^%@ Windows 10 again!!!!
« Reply #7 on: August 22, 2019, 01:57:14 pm »
Prevent loading the old project, maybe it is damaged. Start Lazarus with the command line parameter --skip-last-project. If Lazarus starts successfully go to "Tools" > "Options"  > "Environment" > "Files" and uncheck "Open last project and packages at start". After having figured out what's wrong with that particular project you can set this checkmark again if you want.
« Last Edit: August 22, 2019, 01:58:53 pm by wp »

Badger

  • Full Member
  • ***
  • Posts: 144
Re: %&^%@ Windows 10 again!!!!
« Reply #8 on: August 22, 2019, 02:53:30 pm »
Sorry to show my ignorance could you please clarify  Start Lazarus with the command line parameter --skip-last-project.
Badger
(A bad tempered, grumpy animal that sleeps most of the winter!)

If at first you don't succeed - you're running about average!

I'm using Windows 10 Lazarus v2.4.4  FPC 3.2.2   Win 32/64

wp

  • Hero Member
  • *****
  • Posts: 11854
Re: %&^%@ Windows 10 again!!!!
« Reply #9 on: August 22, 2019, 03:53:48 pm »
You probably have an icon on the desktop from which you start Lazarus? Right-click on this icon, and select "Properties" from the context menu. Go to page "Link". Add a space and the text "--skip-last-project" (without quotes) to the line "Destination" which contains the path to Lazarus.exe. Click OK. Then start Lazarus by clicking on this icon. Lazarus should not load the last project now. Later, you can remove this commandline parameter again.

Or: Open a cmd window. Using the "cd" command, navigate to the folder which contains Lazarus.exe. Type "lazarus --skip-last-project" -> Lazarus opens without the last project.

howardpc

  • Hero Member
  • *****
  • Posts: 4144
Re: %&^%@ Windows 10 again!!!!
« Reply #10 on: August 22, 2019, 04:02:41 pm »
2nd option:

kupferstecher

  • Hero Member
  • *****
  • Posts: 583
Re: %&^%@ Windows 10 again!!!!
« Reply #11 on: August 22, 2019, 04:35:01 pm »
@TE:
Did you try to open another project by double clicking on the lpi-file?

Badger

  • Full Member
  • ***
  • Posts: 144
Re: %&^%@ Windows 10 again!!!!
« Reply #12 on: August 23, 2019, 12:05:57 am »
Interesting. 
When I start as suggested, the blank project opens OK.  When I then change to my original project, that then opens OK. 
I then changed to a different project and closed Lazarus.  When I removed the parameter, I got the same error message when I opened Lazarus on the new project.

I can also open Lazarus with an existing project by double clicking the lpi file.

It seems I can open a blank Project but non of my previous projects.  However, once I have opened the blank project I can then open any project.
« Last Edit: August 23, 2019, 12:08:29 am by Badger »
Badger
(A bad tempered, grumpy animal that sleeps most of the winter!)

If at first you don't succeed - you're running about average!

I'm using Windows 10 Lazarus v2.4.4  FPC 3.2.2   Win 32/64

ASBzone

  • Hero Member
  • *****
  • Posts: 678
  • Automation leads to relaxation...
    • Free Console Utilities for Windows (and a few for Linux) from BrainWaveCC
Re: %&^%@ Windows 10 again!!!!
« Reply #13 on: August 23, 2019, 12:11:09 am »
My computer installed the latest update to windows 10 and now when I try to open Lazarus, I get an error
'Error occurred at last start up while loading ............'


What build of Windows were you running before, what build are you running now, and was Lazarus open when the update was taking place?

Have you tried just reinstalling Lazarus 1.8.4 again?

-ASB: https://www.BrainWaveCC.com/

Lazarus v2.2.7-ada7a90186 / FPC v3.2.3-706-gaadb53e72c
(Windows 64-bit install w/Win32 and Linux/Arm cross-compiles via FpcUpDeluxe on both instances)

My Systems: Windows 10/11 Pro x64 (Current)

wp

  • Hero Member
  • *****
  • Posts: 11854
Re: %&^%@ Windows 10 again!!!!
« Reply #14 on: August 23, 2019, 12:24:48 am »
Since I normally don't work with the option to load the previous project I tested this with your Laz version 1.8.4 on my Win 10. But no problem here, Lazarus starts correctly and loads the project of the previous session.

Before reinstalling Lazarus you could try to rebuild the IDE: "Tools" > "Build Lazarus with Profile: Normal IDE".

If you decide to do a reinstallation, you could consider to switch to v2.0.4 since v1.8.4 is no longer up-to-date. Make a secondary installation so that your current installation is left untouched - I described the procedure in several posts here.

 

TinyPortal © 2005-2018