Sign in Join

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

Mailing lists / lazarus / 2001-01

The reason for Lazarus crashing - Chapter 1

2 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

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

Shane Miller

OK, here's what I've discovered.

If you pull from CVS and compile (make clean; make OPT=-dDEBUG) with fpc 1.0.5 and run it should run. To make it crash, go into ViewForms_dlg.pp and go to the bottom of the file. The include line looks like this

{ $I viewforms1.lrs}

Notice the space after the first comment. This prevents the include from occuring. Remove the space and recompile (make clean; make OPT=-dDEBUG)

Then it will crash. Notice though the # of lines that say

Signature=TPF0

There are 3. That means that 3 form resoruces were found and it crashed during/after the third. It turns out it crashes in reader.inc in the ReadPropValue function while loading the viewforms1 form. Now, go into Lazarus.pp and move the Application.Createform('TViewForms','ViewForms1') up above the one for TViewUnits. IF you compile and run again you will notice only 2 lines that say

Signature=TPF0

That means that by changing the order that these were created that it stil crashed during TViewForms creation. That proves (I think) that it's SOMETHING related to TViewForms but it's EXACTLY like TViewUnits except for the name of the form and the class.

Anyone have any bright ideas?

Shane

Reply by email

Mattias Gaertner
to Shane Miller

Hi Shane,

I have tested the viewforms streaming problem. I activated the constructor in viewform_dlg.pp, used your code to create the lfm file, used lazares to create the lrs file, activate the resource in viewform_dlg.pp, recompiled and it worked fine.
I tested it with the current 1.0.5 from cvs, not the rpm. Perhaps you should update?

I took synedit 1.3. I deactivated the docking, mousewheel, filedragging and clipboard code, added a lot of IFDEFs and now I have got a synedit.pp and 10 additional units which compile without errors. Now I will try to get it working. There is a lot of font code which I do not understand yet. Especially getting the font descriptions.

Mattias

Show quoted text 40 lines
OK, here's what I've discovered. If you pull from CVS and compile (make clean; make OPT=-dDEBUG) with fpc 1.0.5 and run it should run. To make it crash, go into ViewForms_dlg.pp and go to the bottom of the file. The include line looks like this { $I viewforms1.lrs} Notice the space after the first comment. This prevents the include from occuring. Remove the space and recompile (make clean; make OPT=-dDEBUG) Then it will crash. Notice though the # of lines that say Signature=TPF0 There are 3. That means that 3 form resoruces were found and it crashed during/after the third. It turns out it crashes in reader.inc in the ReadPropValue function while loading the viewforms1 form. Now, go into Lazarus.pp and move the Application.Createform('TViewForms','ViewForms1') up above the one for TViewUnits. IF you compile and run again you will notice only 2 lines that say Signature=TPF0 That means that by changing the order that these were created that it stil crashed during TViewForms creation. That proves (I think) that it's SOMETHING related to TViewForms but it's EXACTLY like TViewUnits except for the name of the form and the class. Anyone have any bright ideas? Shane _________________________________________________________________ To unsubscribe: mail with "unsubscribe" as the Subject archives at http://www.miraclec.com/list_archives/lazarus

Reply by email