Sign in Join

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

Mailing lists / lazarus / 2011-06

Project options corrupts resource

5 messages · 3 people · –

Reply by email Subscribe to this list Your subscription

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

Koenraad Lelong

Hi,

I just installed Lazarus 0.9.30 Win32 on Windows7 64bit. I opened and compiled a project made with Lazarus 0.9.28 on Windows XP 32bit. Everyting is fine. But when I try to change some project options, I get an error message :
CygnusTest.pas(27,1) Error: Error while compiling resources CygnusTest.pas(27,1) Fatal: There were 1 errors compiling module, stopping

I found that just clicking Project Options and then OK does this.

What can I do to recover my project ? Fortunately, I did not do big modifications.

TIA,

Koenraad Lelong.

Reply by email

Luca Olivetti
to Koenraad Lelong

Al 27/06/2011 11:19, En/na Koenraad Lelong ha escrit:

Show quoted text 13 lines
Hi, I just installed Lazarus 0.9.30 Win32 on Windows7 64bit. I opened and compiled a project made with Lazarus 0.9.28 on Windows XP 32bit. Everyting is fine. But when I try to change some project options, I get an error message : CygnusTest.pas(27,1) Error: Error while compiling resources CygnusTest.pas(27,1) Fatal: There were 1 errors compiling module, stopping I found that just clicking Project Options and then OK does this. What can I do to recover my project ? Fortunately, I did not do big modifications.

Try removing the icon. Then re-add it.
If that doesn't work, remove the "{$I projectname.lrs}" from the lpr file, then do the above again (remove/re-add the icon).

Bye

Luca Olivetti Wetron Automation Technology http://www.wetron.es Tel. +34 935883004 (Ext.133) Fax +34 935883007

Reply by email

Koenraad Lelong
to Luca Olivetti
Luca Olivetti wrote 21 lines
Al 27/06/2011 11:19, En/na Koenraad Lelong ha escrit: > Hi, > > I just installed Lazarus 0.9.30 Win32 on Windows7 64bit. > I opened and compiled a project made with Lazarus 0.9.28 on Windows XP > 32bit. Everyting is fine. But when I try to change some project options, > I get an error message : > CygnusTest.pas(27,1) Error: Error while compiling resources > CygnusTest.pas(27,1) Fatal: There were 1 errors compiling module, > stopping > > I found that just clicking Project Options and then OK does this. > > What can I do to recover my project ? Fortunately, I did not do big > modifications. Try removing the icon. Then re-add it. If that doesn't work, remove the "{$I projectname.lrs}" from the lpr file, then do the above again (remove/re-add the icon). Bye

Thanks for your response, but I can't get it to work.

I resored an older version. There I have the same problem so I can experiment.
What I have seen :
opening the project I have the program-source containing the startup-code which includes {$I CygnusTest.lrs}.
When I go to Program Options and just click OK that line disappears. Compiling then fails.
I tried to remove the icon and adding it back but that does nothing to resolve my problem.

I tried something from scratch and that works fine.

I hope someone can help me with this.

Regards,

Koenraad Lelong.

Reply by email

Hans-Peter Diettrich
to Koenraad Lelong
opening the project I have the program-source containing the startup-code which includes {$I CygnusTest.lrs}. When I go to Program Options and just click OK that line disappears. Compiling then fails.

Perhaps you should update the resource option? Select FPC (.lrs) or Delphi (.lfm) resources, depending on what was used in your old project.

DoDi

Reply by email

Koenraad Lelong
to Hans-Peter Diettrich
Hans-Peter Diettrich wrote 12 lines
Koenraad Lelong schrieb: > opening the project I have the program-source containing the > startup-code which includes {$I CygnusTest.lrs}. > When I go to Program Options and just click OK that line disappears. > Compiling then fails. Perhaps you should update the resource option? Select FPC (.lrs) or Delphi (.lfm) resources, depending on what was used in your old project. DoDi

Hi,

FWIW, I recovered by creating a new project and manually adding my units. One problem though was adding them to the autocreate-list. Now I realize I could have doen this manually, but I did it by exiting lazarus with a non-automatically created unit in "foreground" in the editor. Then I restarted lazarus. Then I could add that form via Project Options/Forms.

Regards,

Koenraad Lelong.

Reply by email