Recent

Author Topic: [SOLVED] The main screen of my project is no longer found.  (Read 559 times)

Hansvb

  • Hero Member
  • *****
  • Posts: 894
[SOLVED] The main screen of my project is no longer found.
« on: February 07, 2026, 04:37:07 pm »
Hi,

I have something I don't understand. I'm working on a project and if I use the Cleanup and build option while in debug build mode, it works fine. If I set the build mode to release, cleanup and build crashes on a message that my main form is not found. But I can click on the unit reference and then the editor just jumps to my main form file.
With project inspector add view.main.pas does not help.  Something is broken but what...

What could that be?
(Win 11, Lazarus 4.4)
« Last Edit: February 07, 2026, 06:51:04 pm by Hansvb »

JuhaManninen

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4698
  • I like bugs.
Re: The main screen of my project is no longer found.
« Reply #1 on: February 07, 2026, 04:48:37 pm »
Your screenshot just cuts off the actual error message.
Mostly Lazarus trunk and FPC 3.2 on Manjaro Linux 64-bit.

Hansvb

  • Hero Member
  • *****
  • Posts: 894
Re: The main screen of my project is no longer found.
« Reply #2 on: February 07, 2026, 05:04:08 pm »
Ai, i see. :-[  Attempt 2...
« Last Edit: February 07, 2026, 05:07:25 pm by Hansvb »

Hansvb

  • Hero Member
  • *****
  • Posts: 894
Re: The main screen of my project is no longer found.
« Reply #3 on: February 07, 2026, 06:41:28 pm »
Something happens to the search paths when I do a cleanup and build in release mode. The search paths seem to be changing. Do not know why (yet).

Hansvb

  • Hero Member
  • *****
  • Posts: 894
Re: The main screen of my project is no longer found.
« Reply #4 on: February 07, 2026, 06:50:52 pm »
It seems to have been solved now. I threw away the search paths and then re-entered them. Cleanup and build in release mode works again. No idea what broke this (but glad cleanup build is working properly again)

 

TinyPortal © 2005-2018