Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2009-11

Forms, Project Subversion, Windows 7

5 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Andrew Brunner

I just encountered the most strangest problem. I've got a situation where form changes I make in the IDE do not effect the form in the actual exe. I didn't have this problem on Linux. I just noticed this problem when I created an SVN (subversion ubuntu x64) repository for my project. Once that was accomplished I went to my windows 7 box installed FPC bin and checked out FPC /Lazarus from svn. Then I built both FPC and Lazarus. Then I checked out a copy of my Project onto my Windows box. The next part is proably the source of the problem...

I took the existing project files and moved them to 4 different locations... One location per flavor of WIndows and Linux... X64 or
32. And I wanted to have seperate project files for each special build. Which gave me some problems but I did get my Project to build on Windows (for a first time as native FPC/Lazarus code).

I need to know where in the world is Lazarus/FPC keeping that stale form file? the form name is frmLogin.pas with resource and form files too. What is causing FPC to drop changes? Does this have anything to do with WIndows 7 since I created a Windows 7 "library" and added my localized FPC/Lazarus/Project Source checked out from their repositories. What could possibly cause the symtom of not displaying a button I placed on a form and re-built... Only to see a version of the form that was there in the first place?

Did a find files and deleted all object files for frmLogin I found.... Anything else I can try?

Reply by email

Mattias Gaertner
to Andrew Brunner
Show quoted text 14 lines
I just encountered the most strangest problem. I've got a situation where form changes I make in the IDE do not effect the form in the actual exe. I didn't have this problem on Linux. I just noticed this problem when I created an SVN (subversion ubuntu x64) repository for my project. Once that was accomplished I went to my windows 7 box installed FPC bin and checked out FPC /Lazarus from svn. Then I built both FPC and Lazarus. Then I checked out a copy of my Project onto my Windows box. The next part is proably the source of the problem... I took the existing project files and moved them to 4 different locations... One location per flavor of WIndows and Linux... X64 or 32. And I wanted to have seperate project files for each special build. Which gave me some problems but I did get my Project to build on Windows (for a first time as native FPC/Lazarus code).

Do you have four different folder and each contains the whole project, or do you share some files?

I need to know where in the world is Lazarus/FPC keeping that stale form file?

It uses the .lrs files, which are normal include files. The IDE automatically updates the .lrs files when you save a designed form and before compilation it updates all units shown in the project inspector.

Show quoted text 7 lines
the form name is frmLogin.pas with resource and form files too. What is causing FPC to drop changes? Does this have anything to do with WIndows 7 since I created a Windows 7 "library" and added my localized FPC/Lazarus/Project Source checked out from their repositories. What could possibly cause the symtom of not displaying a button I placed on a form and re-built... Only to see a version of the form that was there in the first place?

Either an old lrs file or a resource with the same name exists twice. The 0.9.29 lcl reports duplicates at the console. I don't know if this is in 0.9.28.
Or you have an absolute search path in the compiler options and all four use the same.
You can delete the .lrs files and rebuild the project. The IDE should auto create the lrs files from the lfm files.

Did a find files and deleted all object files for frmLogin I found.... Anything else I can try?

Mattias

Reply by email

Andrew Brunner
to Mattias Gaertner
Mattias Gaertner wrote 5 lines
On Fri, 13 Nov 2009 12:24:08 -0600 Andrew Brunner wrote: Do you have four different folder and each contains the whole project, or do you share some files?

The each project are stand alone project file and nothing else is in each folder. So it's like

c:\Devloper\Source\Builds\SCS\Windows\32\Console.lpr c:\Devloper\Source\Builds\SCS\Windows\64\Console.lpr c:\Devloper\Source\Builds\SCS\Linux\32\Console.lpr c:\Devloper\Source\Builds\SCS\\Linux\64\Console.lpr

There are a bunch of compiled units and objects in this folder on build but nothing I generated resides here besided the proejct itself.

Show quoted text 9 lines
Either an old lrs file or a resource with the same name exists twice. The 0.9.29 lcl reports duplicates at the console. I don't know if this is in 0.9.28. Or you have an absolute search path in the compiler options and all four use the same. You can delete the .lrs files and rebuild the project. The IDE should auto create the lrs files from the lfm files.

Deleting the build files does nothing to solve the problem. I wonder if this is a Windows 7 problem w/r/t libraries.

Reply by email

Mattias Gaertner
to Andrew Brunner
Show quoted text 30 lines
On Fri, Nov 13, 2009 at 1:02 PM, Mattias Gaertner wrote: > On Fri, 13 Nov 2009 12:24:08 -0600 > Andrew Brunner wrote: > Do you have four different folder and each contains the whole > project, or do you share some files? The each project are stand alone project file and nothing else is in each folder. So it's like c:\Devloper\Source\Builds\SCS\Windows\32\Console.lpr c:\Devloper\Source\Builds\SCS\Windows\64\Console.lpr c:\Devloper\Source\Builds\SCS\Linux\32\Console.lpr c:\Devloper\Source\Builds\SCS\\Linux\64\Console.lpr There are a bunch of compiled units and objects in this folder on build but nothing I generated resides here besided the proejct itself. > > Either an old lrs file or a resource with the same name exists > twice. The 0.9.29 lcl reports duplicates at the console. I don't > know if this is in 0.9.28. > Or you have an absolute search path in the compiler options and all > four use the same. > You can delete the .lrs files and rebuild the project. The IDE > should auto create the lrs files from the lfm files. > Deleting the build files does nothing to solve the problem.

Does it recreate the .lrs files?
Does it recreate the .exe file?
Do you execute the right .exe file?

I wonder if this is a Windows 7 problem w/r/t libraries.

Mattias

Reply by email

Andrew Brunner
to Mattias Gaertner
> > Either an old lrs file or a resource with the same name exists

This must have been the reason. I added *.lrs to the global ignore for TortoiseSVN on my client box. Then I deleted *.lrs from SVN. Then I deleted *.lrs from my local box. Commited changes. And it it found the latest and greatest version. Sweet!

Thanks for the help. I appreciate it.

Reply by email