Sign in Join

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

Mailing lists / lazarus / 2010-04

Invalid file handle when closing Lazarus

22 messages · 5 people · –

Reply by email Subscribe to this list Your subscription

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

Antônio
to Antônio

Or when I close Lazarus with this file opened in the editor.

Ant?nio

2010/4/5 Ant?nio :

Show quoted text 22 lines
I get this message when closing a given file. Win XP. Ant?nio 2010/4/5 Paul Ishenin : > 05.04.2010 14:41, Ant?nio wrote: >> >> What is that? > > You gave too much useful information so it is not interesting to answer. > > Best regards, > Paul Ishenin. > > > -- > _______________________________________________ > Lazarus mailing list > > http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus >

Reply by email

Antônio
to Antônio

And Lazarus seems to refer to a form file.

Ant?nio

2010/4/5 Ant?nio :

Show quoted text 28 lines
Or when I close Lazarus with this file opened in the editor. Ant?nio 2010/4/5 Ant?nio : > I get this message when closing a given file. Win XP. > > Ant?nio > > 2010/4/5 Paul Ishenin : >> 05.04.2010 14:41, Ant?nio wrote: >>> >>> What is that? >> >> You gave too much useful information so it is not interesting to answer. >> >> Best regards, >> Paul Ishenin. >> >> >> -- >> _______________________________________________ >> Lazarus mailing list >> >> http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus >> >

Reply by email

Antônio
to Antônio

Sometimes Lazarus closes and this file remains opened.

Ant?nio

2010/4/5 Ant?nio :

Show quoted text 34 lines
And Lazarus seems to refer to a form file. Ant?nio 2010/4/5 Ant?nio : > Or when I close Lazarus with this file opened in the editor. > > Ant?nio > > 2010/4/5 Ant?nio : >> I get this message when closing a given file. Win XP. >> >> Ant?nio >> >> 2010/4/5 Paul Ishenin : >>> 05.04.2010 14:41, Ant?nio wrote: >>>> >>>> What is that? >>> >>> You gave too much useful information so it is not interesting to answer. >>> >>> Best regards, >>> Paul Ishenin. >>> >>> >>> -- >>> _______________________________________________ >>> Lazarus mailing list >>> >>> http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus >>> >> >

Reply by email

Antônio
to Antônio

Closing only this file causes Lazarus to crash.

Ant?nio

2010/4/5 Ant?nio :

Show quoted text 40 lines
Sometimes Lazarus closes and this file remains opened. Ant?nio 2010/4/5 Ant?nio : > And Lazarus seems to refer to a form file. > > Ant?nio > > 2010/4/5 Ant?nio : >> Or when I close Lazarus with this file opened in the editor. >> >> Ant?nio >> >> 2010/4/5 Ant?nio : >>> I get this message when closing a given file. Win XP. >>> >>> Ant?nio >>> >>> 2010/4/5 Paul Ishenin : >>>> 05.04.2010 14:41, Ant?nio wrote: >>>>> >>>>> What is that? >>>> >>>> You gave too much useful information so it is not interesting to answer. >>>> >>>> Best regards, >>>> Paul Ishenin. >>>> >>>> >>>> -- >>>> _______________________________________________ >>>> Lazarus mailing list >>>> >>>> http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus >>>> >>> >> >

Reply by email

Mattias Gaertner
to Antônio
Closing only this file causes Lazarus to crash.

I never saw that error.
Is this the correct and full error message?
Does this happen with any file or only one particular? What kind of file is this? A unit source file?

Mattias

Reply by email

Silvio Clecio
to Antônio: Closing only this file causes Lazarus to crash. Ant?nio 2010/4/5 Ant?nio :
Ant?nio wrote 23 lines
Closing only this file causes Lazarus to crash. Ant?nio 2010/4/5 Ant?nio : > Sometimes Lazarus closes and this file remains opened. > > Ant?nio > > 2010/4/5 Ant?nio : >> And Lazarus seems to refer to a form file. >> >> Ant?nio >> >> 2010/4/5 Ant?nio : >>> Or when I close Lazarus with this file opened in the editor. >>> >>> Ant?nio >>> >>> 2010/4/5 Ant?nio : >>>> I get this message when closing a given file. Win XP. >>>> >>>> Ant?nio

this is what I call talking to alone myself :D

[]'s Silvio Cl?cio -- programmer ObjectPascal - http://silvioprog.com.br -- twitter - http://twitter.com/silvioprog -- Grupo Lazarus-BR no Google - http://groups.google.com/group/lazarus-br

Reply by email

Martin
to Antônio: What is that? Ant?nio
Ant?nio wrote
What is that?

Please can you get the following information?

1) Your Lazaus Version. Please go to: Menu / Help / About Lazarus => There is Version; Fpc Version; Date

2) Name and Path of the file that does not close
Or if you do not know, name and path of all open files

3) You said "sometimes crashes".
- please recompile lazarus:
Go to Menu / Tools / Configure BuildLazarus
Select "Advanced Build options" tab
Set "Clean All"
Add " -g -gl " in the edit-field "Options"
restart Lazarus

- then please start Lazarus with (make a windows shortcut in order to add this)
--debug-log=c:\log.txt
then make Lazarus crash and send the file (zip/rar)

Best Regards
Martin

Reply by email

Antônio
to Martin

1) Lazarus 0.9.28.2 r22279 FPC 2.2.4 i386-win32-win32/win64

2) C:\Documents and Settings\antonio\Desktop\Text Stats\unitprincipal.lfm

3) Done.

Ant?nio

2010/4/5 Martin :

Show quoted text 37 lines
On 05/04/2010 07:41, Ant?nio wrote: > > What is that? > Please can you get the following information? 1) Your Lazaus Version. Please go to: Menu / Help / About Lazarus => There is Version; Fpc Version; Date 2) Name and Path of the file that does not close ?Or if you do not know, name and path of all open files 3) You said "sometimes crashes". - please recompile lazarus: ?Go to Menu / Tools / Configure BuildLazarus ?Select "Advanced Build options" tab ?Set "Clean All" ?Add " -g -gl " in the edit-field "Options" ?restart Lazarus - then please start Lazarus with (make a windows shortcut in order to add this) ?--debug-log=c:\log.txt then make Lazarus crash and send the file (zip/rar) Best Regards Martin -- _______________________________________________ Lazarus mailing list http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

-------------- next part --------------
A non-text attachment was scrubbed...
Name: log.zip
Type: application/zip
Size: 731 bytes
Desc: not available
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20100405/a7752edc/attachment.zip>

Reply by email

Martin
to Antônio

Hi Ant?nio,

The problem is not with the file handle, there is another exception before this (but it is probably not shown to you)
TryFreeComponent ERROR: "memo:TSynEdit" Access violation Stack trace:
TApplication.HandleException Invalid file handle
Stack trace:

I assume the Following: unitprincipal.pas/lfm does have a form with a Synedit on it?
Then when you save your LFM something goes wrong with saving the SynEdit.

Question, do you use Frames? Is the SynEdit part of a TFrame?

There were a few things with SynEdit that got fixed in the meantime. If you can, please try a daily snapshot of Lazarus
( http://www.hu.freepascal.org/lazarus/ ).

But keep your current installation, in case the snapshot doesn't work for you.
Also run the snapshot with --primary-config-path="C:\somefolder" (somefolder should exist, and can be empty). This ensures your old config will not be changed.

If that does not help, or if you can not use a snapshot, then maybe you can send the unit and the lfm? togethet whit instructions what do to (how to edit it), so that it crashes when trying to save it?

Best Regards
Martin

Ant?nio wrote 39 lines
1) Lazarus 0.9.28.2 r22279 FPC 2.2.4 i386-win32-win32/win64 2) C:\Documents and Settings\antonio\Desktop\Text Stats\unitprincipal.lfm 3) Done. Ant?nio 2010/4/5 Martin: > On 05/04/2010 07:41, Ant?nio wrote: > >> What is that? >> >> > Please can you get the following information? > > 1) Your Lazaus Version. Please go to: Menu / Help / About Lazarus => There > is Version; Fpc Version; Date > > 2) Name and Path of the file that does not close > Or if you do not know, name and path of all open files > > 3) You said "sometimes crashes". > - please recompile lazarus: > Go to Menu / Tools / Configure BuildLazarus > Select "Advanced Build options" tab > Set "Clean All" > Add " -g -gl " in the edit-field "Options" > restart Lazarus > > - then please start Lazarus with (make a windows shortcut in order to add > this) > --debug-log=c:\log.txt > then make Lazarus crash and send the file (zip/rar) > > Best Regards > Martin >

Reply by email

Antônio
to Martin

2010/4/5 Martin :

Show quoted text 14 lines
Hi Ant?nio, The problem is not with the file handle, there is another exception before this (but it is probably not shown to you) TryFreeComponent ERROR: "memo:TSynEdit" Access violation ?Stack trace: TApplication.HandleException Invalid file handle ?Stack trace: I assume the Following: unitprincipal.pas/lfm does have a form with a Synedit on it? Then when you save your LFM something goes wrong with saving the SynEdit. Question, do you use Frames? Is the SynEdit part of a TFrame?

As far as I know, no.

Show quoted text 74 lines
There were a few things with SynEdit that got fixed in the meantime. If you can, please try a daily snapshot of Lazarus ?( http://www.hu.freepascal.org/lazarus/ ). But keep your current installation, in case the snapshot doesn't work for you. Also run the snapshot with ? --primary-config-path="C:\somefolder" ?(somefolder should exist, and can be empty). This ensures your old config will not be changed. If that does not help, or if you can not use a snapshot, then maybe you can send the unit and the lfm? togethet whit instructions what do to (how to edit it), so that it crashes when trying to save it? Best Regards Martin On 05/04/2010 23:57, Ant?nio wrote: > > 1) Lazarus 0.9.28.2 r22279 FPC 2.2.4 i386-win32-win32/win64 > > 2) C:\Documents and Settings\antonio\Desktop\Text Stats\unitprincipal.lfm > > 3) Done. > > Ant?nio > > 2010/4/5 Martin: > >> >> On 05/04/2010 07:41, Ant?nio wrote: >> >>> >>> What is that? >>> >>> >> >> Please can you get the following information? >> >> 1) Your Lazaus Version. Please go to: Menu / Help / About Lazarus => >> ?There >> is Version; Fpc Version; Date >> >> 2) Name and Path of the file that does not close >> ?Or if you do not know, name and path of all open files >> >> 3) You said "sometimes crashes". >> - please recompile lazarus: >> ?Go to Menu / Tools / Configure BuildLazarus >> ?Select "Advanced Build options" tab >> ?Set "Clean All" >> ?Add " -g -gl " in the edit-field "Options" >> ?restart Lazarus >> >> - then please start Lazarus with (make a windows shortcut in order to add >> this) >> ?--debug-log=c:\log.txt >> then make Lazarus crash and send the file (zip/rar) >> >> Best Regards >> Martin >> -- _______________________________________________ Lazarus mailing list http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply by email

Antônio
to Antônio

The entire contents of the LFM file has 1245 lines and I don't know if I can post it here.

Ant?nio

2010/4/5 Ant?nio :

Show quoted text 97 lines
2010/4/5 Martin : > Hi Ant?nio, > > The problem is not with the file handle, there is another exception before > this (but it is probably not shown to you) > TryFreeComponent ERROR: "memo:TSynEdit" Access violation > ?Stack trace: > TApplication.HandleException Invalid file handle > ?Stack trace: > > I assume the Following: unitprincipal.pas/lfm does have a form with a > Synedit on it? > Then when you save your LFM something goes wrong with saving the SynEdit. > > Question, do you use Frames? Is the SynEdit part of a TFrame? As far as I know, no. > There were a few things with SynEdit that got fixed in the meantime. If you > can, please try a daily snapshot of Lazarus > ?( http://www.hu.freepascal.org/lazarus/ ). > > But keep your current installation, in case the snapshot doesn't work for > you. > Also run the snapshot with ? --primary-config-path="C:\somefolder" > ?(somefolder should exist, and can be empty). This ensures your old config > will not be changed. > > If that does not help, or if you can not use a snapshot, then maybe you can > send the unit and the lfm? togethet whit instructions what do to (how to > edit it), so that it crashes when trying to save it? > > Best Regards > Martin > > > > > > On 05/04/2010 23:57, Ant?nio wrote: >> >> 1) Lazarus 0.9.28.2 r22279 FPC 2.2.4 i386-win32-win32/win64 >> >> 2) C:\Documents and Settings\antonio\Desktop\Text Stats\unitprincipal.lfm >> >> 3) Done. >> >> Ant?nio >> >> 2010/4/5 Martin: >> >>> >>> On 05/04/2010 07:41, Ant?nio wrote: >>> >>>> >>>> What is that? >>>> >>>> >>> >>> Please can you get the following information? >>> >>> 1) Your Lazaus Version. Please go to: Menu / Help / About Lazarus => >>> ?There >>> is Version; Fpc Version; Date >>> >>> 2) Name and Path of the file that does not close >>> ?Or if you do not know, name and path of all open files >>> >>> 3) You said "sometimes crashes". >>> - please recompile lazarus: >>> ?Go to Menu / Tools / Configure BuildLazarus >>> ?Select "Advanced Build options" tab >>> ?Set "Clean All" >>> ?Add " -g -gl " in the edit-field "Options" >>> ?restart Lazarus >>> >>> - then please start Lazarus with (make a windows shortcut in order to add >>> this) >>> ?--debug-log=c:\log.txt >>> then make Lazarus crash and send the file (zip/rar) >>> >>> Best Regards >>> Martin >>> > > > -- > _______________________________________________ > Lazarus mailing list > > http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus >

Reply by email

Antônio
to Antônio

But I see something that can be interesting:

object Panel2: TPanel
Left = 0
Height = 552
Top = 26
Width = 618
Align = alClient
ClientHeight = 552
ClientWidth = 618
TabOrder = 1
inline memo: TSynEdit

Ant?nio

2010/4/6 Ant?nio :

Show quoted text 104 lines
The entire contents of the LFM file has 1245 lines and I don't know if I can post it here. Ant?nio 2010/4/5 Ant?nio : > 2010/4/5 Martin : >> Hi Ant?nio, >> >> The problem is not with the file handle, there is another exception before >> this (but it is probably not shown to you) >> TryFreeComponent ERROR: "memo:TSynEdit" Access violation >> ?Stack trace: >> TApplication.HandleException Invalid file handle >> ?Stack trace: >> >> I assume the Following: unitprincipal.pas/lfm does have a form with a >> Synedit on it? >> Then when you save your LFM something goes wrong with saving the SynEdit. >> >> Question, do you use Frames? Is the SynEdit part of a TFrame? > > > > As far as I know, no. > > > >> There were a few things with SynEdit that got fixed in the meantime. If you >> can, please try a daily snapshot of Lazarus >> ?( http://www.hu.freepascal.org/lazarus/ ). >> >> But keep your current installation, in case the snapshot doesn't work for >> you. >> Also run the snapshot with ? --primary-config-path="C:\somefolder" >> ?(somefolder should exist, and can be empty). This ensures your old config >> will not be changed. >> >> If that does not help, or if you can not use a snapshot, then maybe you can >> send the unit and the lfm? togethet whit instructions what do to (how to >> edit it), so that it crashes when trying to save it? >> >> Best Regards >> Martin >> >> >> >> >> >> On 05/04/2010 23:57, Ant?nio wrote: >>> >>> 1) Lazarus 0.9.28.2 r22279 FPC 2.2.4 i386-win32-win32/win64 >>> >>> 2) C:\Documents and Settings\antonio\Desktop\Text Stats\unitprincipal.lfm >>> >>> 3) Done. >>> >>> Ant?nio >>> >>> 2010/4/5 Martin: >>> >>>> >>>> On 05/04/2010 07:41, Ant?nio wrote: >>>> >>>>> >>>>> What is that? >>>>> >>>>> >>>> >>>> Please can you get the following information? >>>> >>>> 1) Your Lazaus Version. Please go to: Menu / Help / About Lazarus => >>>> ?There >>>> is Version; Fpc Version; Date >>>> >>>> 2) Name and Path of the file that does not close >>>> ?Or if you do not know, name and path of all open files >>>> >>>> 3) You said "sometimes crashes". >>>> - please recompile lazarus: >>>> ?Go to Menu / Tools / Configure BuildLazarus >>>> ?Select "Advanced Build options" tab >>>> ?Set "Clean All" >>>> ?Add " -g -gl " in the edit-field "Options" >>>> ?restart Lazarus >>>> >>>> - then please start Lazarus with (make a windows shortcut in order to add >>>> this) >>>> ?--debug-log=c:\log.txt >>>> then make Lazarus crash and send the file (zip/rar) >>>> >>>> Best Regards >>>> Martin >>>> >> >> >> -- >> _______________________________________________ >> Lazarus mailing list >> >> http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus >> >

Reply by email

Martin
to Antônio: The entire contents of the LFM file has 1245 lines and I don't know if I can post it here.
Ant?nio wrote 5 lines
The entire contents of the LFM file has 1245 lines and I don't know if I can post it here. Ant?nio

Feel free to send by private mail. Directly to my address. You need to include at least the interface section of the pas unit too. So I can load it into the designer.

Also, since you have trouble saving it, the version you have as lfm file was the last one that did save. I assume, you try to change something, before you save it again?

Martin

Reply by email

Martin
to Antônio: But I see something that can be interesting: object Panel2: TPanel Left = 0 Height = 552…
Ant?nio wrote 14 lines
But I see something that can be interesting: object Panel2: TPanel Left = 0 Height = 552 Top = 26 Width = 618 Align = alClient ClientHeight = 552 ClientWidth = 618 TabOrder = 1 inline memo: TSynEdit

That is correct, TSynEdit save as "inline" => like a frame.

It needs to save internal controls too.

Another known issue with this was using Anchors/Alignment. That was fixed, but it is possible it only was fixxed after the release of 0.9.28. Some thingsneeded fixing in FPC too, so FPC 2.4.0 may be needed. (FPC 2.4.0 is included in the daily snapshot of Lazarus (for Windows))

Martin

Reply by email

Antônio
to Martin

I don't know what is your email.

Ant?nio

2010/4/6 Martin :

Show quoted text 35 lines
On 06/04/2010 12:40, Ant?nio wrote: > > But I see something that can be interesting: > > object Panel2: TPanel > ? ? Left = 0 > ? ? Height = 552 > ? ? Top = 26 > ? ? Width = 618 > ? ? Align = alClient > ? ? ClientHeight = 552 > ? ? ClientWidth = 618 > ? ? TabOrder = 1 > ? ? inline memo: TSynEdit > > That is correct, TSynEdit save as "inline" => like a frame. It needs to save internal controls too. Another known issue with this was using Anchors/Alignment. That was fixed, but it is possible it only was fixxed after the release of 0.9.28. Some thingsneeded fixing in FPC too, so FPC 2.4.0 may be needed. (FPC 2.4.0 is included in the daily snapshot of Lazarus (for Windows)) Martin -- _______________________________________________ Lazarus mailing list http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply by email

Antônio
to Antônio

OK, ?nio

2010/4/6 Ant?nio :

Show quoted text 41 lines
I don't know what is your email. Ant?nio 2010/4/6 Martin : > On 06/04/2010 12:40, Ant?nio wrote: >> >> But I see something that can be interesting: >> >> object Panel2: TPanel >> ? ? Left = 0 >> ? ? Height = 552 >> ? ? Top = 26 >> ? ? Width = 618 >> ? ? Align = alClient >> ? ? ClientHeight = 552 >> ? ? ClientWidth = 618 >> ? ? TabOrder = 1 >> ? ? inline memo: TSynEdit >> >> > > That is correct, TSynEdit save as "inline" => like a frame. > > It needs to save internal controls too. > > Another known issue with this was using Anchors/Alignment. That was fixed, > but it is possible it only was fixxed after the release of 0.9.28. > Some thingsneeded fixing in FPC too, so FPC 2.4.0 may be needed. (FPC 2.4.0 > is included in the daily snapshot of Lazarus (for Windows)) > > > Martin > > -- > _______________________________________________ > Lazarus mailing list > > http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus >

Reply by email

Antônio
to Antônio

Done.

Ant?nio

2010/4/6 Ant?nio :

Show quoted text 47 lines
OK, . Ant?nio 2010/4/6 Ant?nio : > I don't know what is your email. > > Ant?nio > > 2010/4/6 Martin : >> On 06/04/2010 12:40, Ant?nio wrote: >>> >>> But I see something that can be interesting: >>> >>> object Panel2: TPanel >>> ? ? Left = 0 >>> ? ? Height = 552 >>> ? ? Top = 26 >>> ? ? Width = 618 >>> ? ? Align = alClient >>> ? ? ClientHeight = 552 >>> ? ? ClientWidth = 618 >>> ? ? TabOrder = 1 >>> ? ? inline memo: TSynEdit >>> >>> >> >> That is correct, TSynEdit save as "inline" => like a frame. >> >> It needs to save internal controls too. >> >> Another known issue with this was using Anchors/Alignment. That was fixed, >> but it is possible it only was fixxed after the release of 0.9.28. >> Some thingsneeded fixing in FPC too, so FPC 2.4.0 may be needed. (FPC 2.4.0 >> is included in the daily snapshot of Lazarus (for Windows)) >> >> >> Martin >> >> -- >> _______________________________________________ >> Lazarus mailing list >> >> http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus >> >

Reply by email

Martin
to Antônio

I was able to reproduce the problem with 0.9.28.
It is a bug in 0.9.28. I also tested with today's version, and it has been fixed there.

There are several things you can do, to get it working for you:

1) Download a daily snapshot.
It will probably work out of the box for you, but it there are some recent changes in it, which are still tested. You may need to compile the snapshot with -dOldAutoSize

2) open c:\your_lazarus_dir\components\synedit\synedit.pp Find line 1831 (or +/- a few lines) and comment out the following line: // FreeAndNil(fScrollTimer);
Then recompile Lazarus (all of it, or at least SynEdit and IDE) and it should solve the problem too

There are a few other issues in 0.9.28: if you use TFrames or if you use "anchor align" with synEdit. ("anchor align" is if you use the "Anchor editor" from the "View" menu).

If you recompile, make a copy of you Lazarus.exe first

Your last recompile didn't have the desired effect (never mind, the log file still did help).
So, if you recompile make sure it succeeds (it should create a lazarus.new.exe) and you do a restart( which renames lazarus.new.exe into lazarus.exe).
After recompiling (before restart) you should have a lazarus.new.exe which will be renamed.

Martin

Ant?nio wrote 62 lines
Done. Ant?nio 2010/4/6 Ant?nio: > OK, . > > Ant?nio > > 2010/4/6 Ant?nio: > >> I don't know what is your email. >> >> Ant?nio >> >> 2010/4/6 Martin: >> >>> On 06/04/2010 12:40, Ant?nio wrote: >>> >>>> But I see something that can be interesting: >>>> >>>> object Panel2: TPanel >>>> Left = 0 >>>> Height = 552 >>>> Top = 26 >>>> Width = 618 >>>> Align = alClient >>>> ClientHeight = 552 >>>> ClientWidth = 618 >>>> TabOrder = 1 >>>> inline memo: TSynEdit >>>> >>>> >>>> >>> That is correct, TSynEdit save as "inline" => like a frame. >>> >>> It needs to save internal controls too. >>> >>> Another known issue with this was using Anchors/Alignment. That was fixed, >>> but it is possible it only was fixxed after the release of 0.9.28. >>> Some thingsneeded fixing in FPC too, so FPC 2.4.0 may be needed. (FPC 2.4.0 >>> is included in the daily snapshot of Lazarus (for Windows)) >>> >>> >>> Martin >>> >>> -- >>> _______________________________________________ >>> Lazarus mailing list >>> >>> http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus >>> >>> >> > -- _______________________________________________ Lazarus mailing list http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply by email

Antônio
to Martin

I applied the second solution and it is OK now. Thanks.

Ant?nio

2010/4/6 Martin :

Show quoted text 117 lines
I was able to reproduce the problem with 0.9.28. It is a bug in 0.9.28. I also tested with today's version, and it has been fixed there. There are several things you can do, to get it working for you: 1) Download a daily snapshot. It will probably work out of the box for you, but it there are some recent changes in it, which are still tested. You may need to compile the snapshot with -dOldAutoSize 2) open ? c:\your_lazarus_dir\components\synedit\synedit.pp Find line 1831 (or +/- a few lines) and comment out the following line: // ?FreeAndNil(fScrollTimer); Then recompile Lazarus (all of it, or at least SynEdit and IDE) and it should solve the problem too There are a few other issues in 0.9.28: if you use TFrames or if you use "anchor align" with synEdit. ?("anchor align" ?is if you use the "Anchor editor" from the "View" menu). If you recompile, make a copy of you Lazarus.exe first Your last recompile didn't have the desired effect (never mind, the log file still did help). So, if you recompile make sure it succeeds (it should create a lazarus.new.exe) and you do a restart( which renames lazarus.new.exe into lazarus.exe). After recompiling (before restart) you should have a lazarus.new.exe which will be renamed. Martin On 06/04/2010 12:54, Ant?nio wrote: > > Done. > > Ant?nio > > 2010/4/6 Ant?nio: > >> >> OK, . >> >> Ant?nio >> >> 2010/4/6 Ant?nio: >> >>> >>> I don't know what is your email. >>> >>> Ant?nio >>> >>> 2010/4/6 Martin: >>> >>>> >>>> On 06/04/2010 12:40, Ant?nio wrote: >>>> >>>>> >>>>> But I see something that can be interesting: >>>>> >>>>> object Panel2: TPanel >>>>> ? ? Left = 0 >>>>> ? ? Height = 552 >>>>> ? ? Top = 26 >>>>> ? ? Width = 618 >>>>> ? ? Align = alClient >>>>> ? ? ClientHeight = 552 >>>>> ? ? ClientWidth = 618 >>>>> ? ? TabOrder = 1 >>>>> ? ? inline memo: TSynEdit >>>>> >>>>> >>>>> >>>> >>>> That is correct, TSynEdit save as "inline" => ?like a frame. >>>> >>>> It needs to save internal controls too. >>>> >>>> Another known issue with this was using Anchors/Alignment. That was >>>> fixed, >>>> but it is possible it only was fixxed after the release of 0.9.28. >>>> Some thingsneeded fixing in FPC too, so FPC 2.4.0 may be needed. (FPC >>>> 2.4.0 >>>> is included in the daily snapshot of Lazarus (for Windows)) >>>> >>>> >>>> Martin >>>> >>>> -- >>>> _______________________________________________ >>>> Lazarus mailing list >>>> >>>> http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus >>>> >>>> >>> >>> >> >> > > -- > _______________________________________________ > Lazarus mailing list > > http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus > -- _______________________________________________ Lazarus mailing list http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply by email