Sign in Join

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

Mailing lists / lazarus / 2009-02

Lazarus 0.9.27 rest unit1.lrs on windows desktop when save new Application

5 messages · 3 people ·

Reply by email Subscribe to this list Your subscription

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

Владимир Средних

Steps to reproduce:

Start Lazarus.
Menu File->New...-> Application

then Menu File->Save All, save all files to new created directory

Look at desktop and find out unit1.lrs

If i add one more forms to project, then for each unit will be unitN.lrs on Desktop

Reply by email

Владимир Средних
to Владимир Средних

Suppose, it's because of shortcut to Lazarus does not contain Work Directory, and it became Desktop.

From this point i think, that write to, or read from "somefile" does not good.

Good practice is to specify FULL path to file any time.

Earlier message 22 lines
-----Original Message----- From: ???????? ??????? To: Date: Wed, 11 Feb 2009 12:55:24 +0300 Subject: [Lazarus] Lazarus 0.9.27 rest unit1.lrs on windows desktop whensave new Application > > Steps to reproduce: > > Start Lazarus. > Menu File->New...-> Application > > then Menu File->Save All, save all files to new created directory > > Look at desktop and find out unit1.lrs > > If i add one more forms to project, then for each unit will be unitN.lrs on Desktop > _______________________________________________ > Lazarus mailing list > > http://www.lazarus.freepascal.org/mailman/listinfo/lazarus >

Reply by email

Mattias Gärtner
to Владимир Средних

Zitat von ???????? ??????? :

Show quoted text 6 lines
Suppose, it's because of shortcut to Lazarus does not contain Work Directory, and it became Desktop. From this point i think, that write to, or read from "somefile" does not good. Good practice is to specify FULL path to file any time.

The IDE will cut any full path automatically.

Show quoted text 12 lines
[...] > Steps to reproduce: > > Start Lazarus. > Menu File->New...-> Application > > then Menu File->Save All, save all files to new created directory > > Look at desktop and find out unit1.lrs > > If i add one more forms to project, then for each unit will be unitN.lrs on Desktop

Are these created already before saving or after you saved the new unit?

The .lrs files should be put into the same directory as the .ppu files (the unit output directory). This has been changed recently. Where are the .ppu files created, when you compile?

Mattias

Reply by email