Anyone know why whenever I call TComponent.Create(AOwner) with anytthing other than nil as the owner, I crash in the procedure TComponent.Notification?
If anyone wants my current code that crashes, let me know.
Shane

Mailing lists / lazarus / 1999-04
16 messages · 3 people ·
Reply by email Subscribe to this list Your subscription
Read-only archive. Use j and k to move between messages.
Anyone know why whenever I call TComponent.Create(AOwner) with anytthing other than nil as the owner, I crash in the procedure TComponent.Notification?
If anyone wants my current code that crashes, let me know.
Shane
What was the name of the procedure that was crashing shane?
Cliff
Anyone know why whenever I call TComponent.Create(AOwner) with anytthing other than nil…
Shane Miller wroteAnyone know why whenever I call TComponent.Create(AOwner) with anytthing other than nil as the owner, I crash in the procedure TComponent.Notification? If anyone wants my current code that crashes, let me know.
Please send it, I will try to fix it ASAP.
Michael.
OK, as I stated I was going to get fpc 0.99.11 and try it. Well I had trouble so now I'm…
All
I was able to get reloaded last night and compile the GTK units. I also managed to get 0.99.11 working nothing to do now but compile the FCL and get back to work.
Cliff Baeseman
Thanks for the quick fix. I will attempt to download the latest compiler. Are you aware…
Shane Miller wroteThanks for the quick fix. I will attempt to download the latest compiler. Are you aware of the bug that causes the compiler to throw an internal error 9999 whenever you don't delete your .o files before compiling, OR if I make a change to the compon.inc file and compile my project, it goes to rebuild the inc file, then goes t
o rebuild my project and throws an error. All I do to fix it is run the compiler again and it works.
Yes, we are aware of this. We have a fix that is supposed to work, but it's still being tested.
Michael.
What was the name of the procedure that was crashing shane? Cliff -----Original…
What was the name of the procedure that was crashing shane?
TComponent.Notification.
I have taken a should be fixed now.
See CVS for up-to-date sources.
Michael.
OK, as I stated I was going to get fpc 0.99.11 and try it. Well I had trouble so now I'm…
Shane were you able to get this thing running last night. I renamed the original directories and put in the
compiler binary and linux units in the 0.99.10 directory. It was a seemless move to 0.99.10 when I did it this way.
Shane can you send me your latest source?
Cliff
OK, as I stated I was going to get fpc 0.99.11 and try it. Well I had trouble so now I'm…
Shane
Do you have the paths still set for both versions of the compiler maybe that is what is causing problems?
Just a little thought.
Cliff
The source is attached (lazarus.zip). Simply unzip it into a directory, ppc386 it and run it. You will notice that once it calls TControl's inherited Create function it crashes. For some reason in TComponent.Notification when TComponent checks If (Operation = opRemove) it blows up.
Shane
>> Michael Van Canneyt 04/12 9:27 AM >>>
Shane Miller wroteAnyone know why whenever I call TComponent.Create(AOwner) with anytthing other than nil as the owner, I crash in the procedure TComponent.Notification? If anyone wants my current code that crashes, let me know.
Please send it, I will try to fix it ASAP.
Michael.
_________________________________________________________________ To unsubscribe: mail with
"unsubscribe" as the Subject
-------------- next part --------------
A non-text attachment was scrubbed...
Name: zip00000.zip
Type: application/octet-stream
Size: 117864 bytes
Desc: "PKZIP (compressed) files"
Url : http://localhost/pipermail/lazarus/attachments/19990412/44f28b53/zip00000.obj
OK, as I stated I was going to get fpc 0.99.11 and try it. Well I had trouble so now I'm…
Hmmm. What is in your /etc/ppc386.cfg file ?
I have something like
-------------- 8< ----------------
#IFDEF VER0_99_10
-Fu/usr/lib/fpc/0.99.10/linuxunits
#ENDIF
#IFDEF VER0_99_11
-Fu/usr/lib/fpc/0.99.11/linuxunits
#ENDIF
-------------- 8< ----------------
You should have something like this to make sure
that each compiler finds the correct units.
You also may want to mke separate links for each compiler. In /usr/bin do the following:
ln -sf /usr/lib/fpc/0.99.10/ppc386 ppc386-0.99.10
ln -sf /usr/lib/fpc/0.99.11/ppc386 ppc386-0.99.11
ln -sf /usr/lib/fpc/0.99.11/ppc386
( I assume you installed in /usr/lib/fpc/0.99.XX ) This is what I have on my machine.
(plus some additional ones, of course)
Now, compiling is simply a matter of
ppc386-0.99.xx file.pp
if you want version 0.99.xx, and you can do a
ppc386 file.pp
to compile with the default version. (0.99.11, in the above case)
Michael.
Thanks for the quick fix. I will attempt to download the latest compiler.
Are you aware of the bug that causes the compiler to throw an internal error 9999 whenever you don't delete your .o files before compiling, OR if I make a change to the compon.inc file and compile my project, it goes to rebuild the inc file, then goes to rebuild my project and throws an error. All I do to fix it is run the compiler again and it works.
Shane
>> Michael Van Canneyt 04/12 10:27 AM >>>
The reason it crashes is that there is a compiler bug: do not use default properties ! So instead of FComponents[I] it should be FComponents.Items[i]
I will try to get this fixed in the compiler ASAP.
Michael.
_________________________________________________________________ To unsubscribe: mail with
"unsubscribe" as the Subject
-----Original Message----- From: Shane Miller Sent: Monday, April 12, 1999 9:33 AM To:…
The reason it crashes is that there is a compiler bug: do not use default properties ! So instead of FComponents[I] it should be FComponents.Items[i]
I will try to get this fixed in the compiler ASAP.
Michael.
I get "authorization failed" when I use cvs for the password to download your files.
Shane
>> Michael Van Canneyt 04/12 10:27 AM >>>
The reason it crashes is that there is a compiler bug: do not use default properties ! So instead of FComponents[I] it should be FComponents.Items[i]
I will try to get this fixed in the compiler ASAP.
Michael.
_________________________________________________________________ To unsubscribe: mail with
"unsubscribe" as the Subject
OK, as I stated I was going to get fpc 0.99.11 and try it. Well I had trouble so now I'm on version 0.99.10 again and when I try to compile I get further than I did with fpc-0.99.11. I have both installed so I simply enter the path to each before compiling so I run the correct one and I don't see TEXT.INC being compiled in the 0.99.10 version but in the 0.99.11 version I get the "text.inc(27,1) Error: Duplicate Identifier VAL" error.
It seems to work with version 0.99.10Shane
Thanks for the quick fix. I will attempt to download the latest compiler. Are you aware…
I have a script at home that kills all of the files and runs the compiler that is how I deal with the error.
Cliff
-----Original Message-----