What is that?
Ant?nio

Mailing lists / lazarus / 2010-04
22 messages · 5 people · –
Reply by email Subscribe to this list Your subscription
Read-only archive. Use j and k to move between messages.
What is that?
Ant?nio
Ant?nio wroteWhat is that?
You gave too much useful information so it is not interesting to answer.
Best regards,
Paul Ishenin.
I get this message when closing a given file. Win XP.
Ant?nio
2010/4/5 Paul Ishenin :
Or when I close Lazarus with this file opened in the editor.
Ant?nio
2010/4/5 Ant?nio :
And Lazarus seems to refer to a form file.
Ant?nio
2010/4/5 Ant?nio :
Sometimes Lazarus closes and this file remains opened.
Ant?nio
2010/4/5 Ant?nio :
Closing only this file causes Lazarus to crash.
Ant?nio
2010/4/5 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
Closing only this file causes Lazarus to crash. Ant?nio 2010/4/5 Ant?nio :
this is what I call talking to alone myself :D
What is that? Ant?nio
Ant?nio wroteWhat 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
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 :
-------------- 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>
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
2010/4/5 Martin :
As far as I know, no.
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 :
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 :
The entire contents of the LFM file has 1245 lines and I don't know if I can post it here.
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
But I see something that can be interesting: object Panel2: TPanel Left = 0 Height = 552…
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
I don't know what is your email.
Ant?nio
2010/4/6 Martin :
OK, ?nio
2010/4/6 Ant?nio :
Done.
Ant?nio
2010/4/6 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
I applied the second solution and it is OK now. Thanks.
Ant?nio
2010/4/6 Martin :