[Lazarus] SynEdit exception on close LFM file [Re: Invalid file handle when closing Lazarus]
Antônio
antoniog12345 at gmail.com
Tue Apr 6 15:03:18 CEST 2010
I applied the second solution and it is OK now. Thanks.
Antônio
2010/4/6 Martin <lazarus at mfriebe.de>:
> 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<antoniog12345 at gmail.com>:
>>
>>>
>>> OK, lazarus at mfriebe.de .
>>>
>>> Antônio
>>>
>>> 2010/4/6 Antônio<antoniog12345 at gmail.com>:
>>>
>>>>
>>>> I don't know what is your email.
>>>>
>>>> Antônio
>>>>
>>>> 2010/4/6 Martin<lazarus at mfriebe.de>:
>>>>
>>>>>
>>>>> 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
>>>>> Lazarus at lists.lazarus.freepascal.org
>>>>> http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
>>>>>
>>>>>
>>>>
>>>>
>>>
>>>
>>
>> --
>> _______________________________________________
>> Lazarus mailing list
>> Lazarus at lists.lazarus.freepascal.org
>> http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
>>
>
>
> --
> _______________________________________________
> Lazarus mailing list
> Lazarus at lists.lazarus.freepascal.org
> http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
>
More information about the Lazarus
mailing list