Mattias Gaertner wrote:
On Thu, 07 Sep 2006 16:40:05 +0200
Jouke Rensma <[EMAIL PROTECTED]> wrote:
Hello,
So I got things working now! The code is in the enclosed (zipped)
patch.
I realize it needs some finetuning, but the basic logic does what I
had in mind.
Now I think it needs some testing, in order to get it ready for the
world. Some questions and remarks:
- I had to create an extra form for the projectoptions. Can it stay
like this or are there other possibilities/ideas?
- I created a check for the targetos, so it should not interfere
non-win32 systems, but I cannot test that right now.
- the rewriting of the .rc file is not protected with try yet.
That's my first change...
Thanks. Applied.
Any other remarks and suggestions are welcome.
Project.Modified is a property. You can not give it to a 'var'
parameter. It's a compiler bug to allow that. I replaced
Project.Modified.
Possible improvement: Add a Modified property to the version info.
Minors:
The lazarus code should have a maximum line length of 80.
Try to avoid nested comments.
Major: avoid memleaks.
Heap dump by heaptrc unit
266867 memory blocks allocated : 16990426/17694552
266849 memory blocks freed : 16987445/17691520
18 unfreed memory blocks : 2981
True heap size : 3899392 (112 used in System startup)
True free heap : 3893168
Should be : 3893512
Call trace for block $04C13CA0 size 55
$008AE785 fpc_ansistr_setlength, line 378 of
C:/lazarus/source/fpc/2.1/rtl/i
nc/astrings.inc
$008AE3C7 fpc_ansistr_concat, line 163 of
C:/lazarus/source/fpc/2.1/rtl/inc/
astrings.inc
$007ECB19 TVERSIONINFO__SETFILENAMES, line 574 of W32VersionInfo.pas
$0070B88E TPROJECT__READPROJECT, line 2028 of Project.pp
$00671FE7 TMAINIDE__DOOPENPROJECTFILE, line 6862 of Main.pp
$00689105 TMAINIDE__SETUPSTARTPROJECT, line 1670 of Main.pp
$006898EC TMAINIDE__STARTIDE, line 1113 of Main.pp
Vincent
_________________________________________________________________
To unsubscribe: mail [EMAIL PROTECTED] with
"unsubscribe" as the Subject
archives at http://www.lazarus.freepascal.org/mailarchives