Sign in Join

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

Mailing lists / lazarus / 1999-04

Probelm with TComponent.Notification

16 messages · 3 people ·

Reply by email Subscribe to this list Your subscription

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

Shane Miller

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

Reply by email

Cliff Baeseman
to Shane Miller

What was the name of the procedure that was crashing shane?

Cliff

Earlier message 19 lines
-----Original Message----- From: Shane Miller Sent: Monday, April 12, 1999 9:01 AM To: Subject: [lazarus] Probelm with TComponent.Notification 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 _________________________________________________________________ To unsubscribe: mail with "unsubscribe" as the Subject

Reply by email

Cliff Baeseman
to Shane Miller: 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

Earlier message 21 lines
-----Original Message----- From: Shane Miller Sent: Thursday, April 15, 1999 2:52 PM To: Subject: Re: FW: RE: [lazarus] Probelm with TComponent.Notification 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.10 Shane _________________________________________________________________ To unsubscribe: mail with "unsubscribe" as the Subject

Reply by email

Michael Van Canneyt
to Shane Miller: Thanks for the quick fix. I will attempt to download the latest compiler. Are you aware…
Shane Miller wrote
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 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.

Reply by email

Cliff Baeseman
to Shane Miller: 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

Earlier message 21 lines
-----Original Message----- From: Shane Miller Sent: Thursday, April 15, 1999 2:52 PM To: Subject: Re: FW: RE: [lazarus] Probelm with TComponent.Notification 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.10 Shane _________________________________________________________________ To unsubscribe: mail with "unsubscribe" as the Subject

Reply by email

Cliff Baeseman
to Shane Miller: 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

Earlier message 21 lines
-----Original Message----- From: Shane Miller Sent: Thursday, April 15, 1999 2:52 PM To: Subject: Re: FW: RE: [lazarus] Probelm with TComponent.Notification 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.10 Shane _________________________________________________________________ To unsubscribe: mail with "unsubscribe" as the Subject

Reply by email

Shane Miller

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 wrote
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.

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

Reply by email

Michael Van Canneyt
to Shane Miller: 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 Miller wrote 8 lines
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.10

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.

Reply by email

Shane Miller

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 >>>
Show quoted text 13 lines
-----Original Message----- From: Shane Miller Sent: Monday, April 12, 1999 9:33 AM To: Subject: Re: RE: [lazarus] Probelm with TComponent.Notification TComponent.Notification. The first line is an if statement "If Operation = opRemove) and (sometrhing) then... I spilt it up into 2 seperate if statements I put the "If Operation = opRemove" first and it never got past that if statement.

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

Reply by email

Michael Van Canneyt
to Cliff Baeseman: -----Original Message----- From: Shane Miller Sent: Monday, April 12, 1999 9:33 AM To:…
Show quoted text 13 lines
-----Original Message----- From: Shane Miller Sent: Monday, April 12, 1999 9:33 AM To: Subject: Re: RE: [lazarus] Probelm with TComponent.Notification TComponent.Notification. The first line is an if statement "If Operation = opRemove) and (sometrhing) then... I spilt it up into 2 seperate if statements I put the "If Operation = opRemove" first and it never got past that if statement.

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.

Reply by email

Shane Miller

I get "authorization failed" when I use cvs for the password to download your files.

Shane

>> Michael Van Canneyt 04/12 10:27 AM >>>
Show quoted text 13 lines
-----Original Message----- From: Shane Miller Sent: Monday, April 12, 1999 9:33 AM To: Subject: Re: RE: [lazarus] Probelm with TComponent.Notification TComponent.Notification. The first line is an if statement "If Operation = opRemove) and (sometrhing) then... I spilt it up into 2 seperate if statements I put the "If Operation = opRemove" first and it never got past that if statement.

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

Reply by email

Shane Miller
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.10

Shane

Reply by email

Cliff Baeseman
to Shane Miller: 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

Earlier message 53 lines
-----Original Message----- From: Shane Miller Sent: Monday, April 12, 1999 11:03 AM To: Subject: Re: FW: RE: [lazarus] Probelm with TComponent.Notification 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 >>> On Mon, 12 Apr 1999 (Cliff Baeseman) wrote: > > > -----Original Message----- > From: Shane Miller > Sent: Monday, April 12, 1999 9:33 AM > To: > Subject: Re: RE: [lazarus] Probelm with TComponent.Notification > > > TComponent.Notification. The first line is an if statement "If Operation = > opRemove) and (sometrhing) then... I spilt it up into 2 seperate if > statements I put the "If Operation = opRemove" first and it never got past > that if statement. 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 _________________________________________________________________ To unsubscribe: mail with "unsubscribe" as the Subject

Reply by email

Cliff Baeseman

-----Original Message-----

Earlier message 43 lines
From: Shane Miller Sent: Monday, April 12, 1999 9:33 AM To: Subject: Re: RE: [lazarus] Probelm with TComponent.Notification TComponent.Notification. The first line is an if statement "If Operation = opRemove) and (sometrhing) then... I spilt it up into 2 seperate if statements I put the "If Operation = opRemove" first and it never got past that if statement. Shane >>> Cliff Baeseman 04/12 9:28 AM >>> What was the name of the procedure that was crashing shane? Cliff -----Original Message----- From: Shane Miller Sent: Monday, April 12, 1999 9:01 AM To: Subject: [lazarus] Probelm with TComponent.Notification 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 _________________________________________________________________ To unsubscribe: mail with "unsubscribe" as the Subject _________________________________________________________________ To unsubscribe: mail with "unsubscribe" as the Subject

Reply by email