Recent

Author Topic: Get Empty Messgae on Project Options  (Read 794 times)

pixelink

  • Hero Member
  • *****
  • Posts: 1269
Get Empty Messgae on Project Options
« on: October 26, 2025, 09:38:49 am »
Well, I get an empty message when I try to click the OK button.
But, it doesn't do it n a new project.
So, why is this doing this on my project. I don't remember changing anything.
« Last Edit: October 26, 2025, 09:47:40 am by pixelink »
Can't Type - Forgetful - Had Stroke = Forgive this old man!
LAZ 4.2.0 •  VSSTUDIO(.Net) 2022 • Win11 • 32G RAM • Nvida RTX 4070 Ti Super

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 11792
  • Debugger - SynEdit - and more
    • wiki
Re: Get Empty Messgae on Project Options
« Reply #1 on: October 26, 2025, 10:10:42 am »
That question can probably only be answered by debugging it.

Make a backup of your project. Especially the LPI and LPS file.
(The LPS may be in the "primary config path" directory / depends on your settings)

If you then remove nodes from the XML of either file (mainly setting related, not file/unit), and find the part of the xml that makes it go away / come back.


Otherwise, how private are the project files?

That is, the lpi and lps? (Hoping that it can be reproduced with just those 2 files)

Then you can upload them, and maybe someonen with more knowledge can have a look at them.


(the contain: unit names, compile settings, build modes, watches, ...)

pixelink

  • Hero Member
  • *****
  • Posts: 1269
Re: Get Empty Messgae on Project Options
« Reply #2 on: October 26, 2025, 01:39:46 pm »
Well, I did it an easier way.
I created a new project and took the lps file and replaced the one in my main project.
That fixed it.

I did figure out what the problem is that causes it too.
When I add an *.ico file to the application setting and click OK is when I get that message.
Then if I reopen th options the icon box is blank although the projects does display the icon on the program on on the taskbar of Windows.

So, not sure why adding an icon is an issue.
I used the same icon as I used in 3.2
« Last Edit: October 26, 2025, 08:29:46 pm by pixelink »
Can't Type - Forgetful - Had Stroke = Forgive this old man!
LAZ 4.2.0 •  VSSTUDIO(.Net) 2022 • Win11 • 32G RAM • Nvida RTX 4070 Ti Super

n7800

  • Hero Member
  • *****
  • Posts: 542
Re: Get Empty Messgae on Project Options
« Reply #3 on: October 26, 2025, 06:54:13 pm »
It was difficult, but I think I found the suspect line:

https://gitlab.com/freepascal.org/lazarus/lazarus/-/blob/main/ide/main.pp#L5340

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 11792
  • Debugger - SynEdit - and more
    • wiki
Re: Get Empty Messgae on Project Options
« Reply #4 on: October 26, 2025, 07:18:24 pm »
Possible, best report as a bug please.

n7800

  • Hero Member
  • *****
  • Posts: 542
Re: Get Empty Messgae on Project Options
« Reply #5 on: October 27, 2025, 01:00:16 am »
I'll try to make a MR, finish it tomorrow later.
« Last Edit: October 29, 2025, 05:06:28 pm by n7800 »

pixelink

  • Hero Member
  • *****
  • Posts: 1269
Re: Get Empty Messgae on Project Options
« Reply #6 on: October 29, 2025, 04:54:15 pm »
So, I am assuming its a bug, right?
When will it be fixed... My EXE's do not have my desired icon, not even a LAZ one.
Thanks
Can't Type - Forgetful - Had Stroke = Forgive this old man!
LAZ 4.2.0 •  VSSTUDIO(.Net) 2022 • Win11 • 32G RAM • Nvida RTX 4070 Ti Super

n7800

  • Hero Member
  • *****
  • Posts: 542
Re: Get Empty Messgae on Project Options
« Reply #7 on: October 29, 2025, 05:21:13 pm »
For some reason your project is throwing an error when updating resources, and we can't say for sure because the error messages aren't everywhere (empty). I'll add them, and you'll see the verbose error ))

Just as a guess, could you tell if main file of your project contains the line "{$R *.res}"? It can be opened with Menu > Project > View Project Source.

pixelink

  • Hero Member
  • *****
  • Posts: 1269
Re: Get Empty Messgae on Project Options
« Reply #8 on: October 29, 2025, 05:32:52 pm »
Yes
Can't Type - Forgetful - Had Stroke = Forgive this old man!
LAZ 4.2.0 •  VSSTUDIO(.Net) 2022 • Win11 • 32G RAM • Nvida RTX 4070 Ti Super

n7800

  • Hero Member
  • *****
  • Posts: 542
Re: Get Empty Messgae on Project Options
« Reply #9 on: October 29, 2025, 06:15:41 pm »
Do you have any resources in "Project Options > Resources"?

pixelink

  • Hero Member
  • *****
  • Posts: 1269
Re: Get Empty Messgae on Project Options
« Reply #10 on: October 29, 2025, 06:44:26 pm »
No. I never have used this. Just adding the icon on the option screen has always worked fine previous to this version 4.2
Can't Type - Forgetful - Had Stroke = Forgive this old man!
LAZ 4.2.0 •  VSSTUDIO(.Net) 2022 • Win11 • 32G RAM • Nvida RTX 4070 Ti Super

pixelink

  • Hero Member
  • *****
  • Posts: 1269
Re: Get Empty Messgae on Project Options
« Reply #11 on: October 29, 2025, 06:46:46 pm »
Well, I tried it and that works.
Hmm never ever had to do this before.

Thanks
Can't Type - Forgetful - Had Stroke = Forgive this old man!
LAZ 4.2.0 •  VSSTUDIO(.Net) 2022 • Win11 • 32G RAM • Nvida RTX 4070 Ti Super

n7800

  • Hero Member
  • *****
  • Posts: 542
Re: Get Empty Messgae on Project Options
« Reply #12 on: October 30, 2025, 07:48:17 am »
Well, I tried it and that works.
Hmm never ever had to do this before.

Thanks

Sorry, what exactly did you do? Does the icon work now and the error doesn't appear?

Initially, I meant that you might be getting the error (blank window) because of some resource there. But since it was empty, that's not the point.

 

TinyPortal © 2005-2018