Sign in Join

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

Mailing lists / lazarus / 1999-05

Shane's Class Self Error's

9 messages · 3 people ·

Reply by email Subscribe to this list Your subscription

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

Michael A. Hess
to Cliff Baeseman: Did you see that 1.2 is ready for use? Cliff -----Original Message----- From: Shane Miller
Cliff Baeseman wrote
Did you see that 1.2 is ready for use?

Here is the only problem though.

As per Peter:
"The GTK version in the CVS is working for gtk 1.2 and gtk 1.0. To compile the gtk sources you need a compiler snapshot dated after 8-5-99."

The latest Linux snapshot is 4-5-99. Until we get a new Linux snapshot you will have to rebuild the compiler from CVS. I don't, do you?

==== Programming my first best destiny! ==== Michael A. Hess Miracle Concepts, Inc. http://www.miraclec.com

Reply by email

Cliff Baeseman
to Shane Miller: The create for TEditor does finish so that is not the problem in this case. Remember,…

Did you see that 1.2 is ready for use?

Cliff

Earlier message 55 lines
-----Original Message----- From: Shane Miller Sent: Monday, May 10, 1999 11:14 AM To: Subject: Re: [lazarus] Shane's Class Self Error's The create for TEditor does finish so that is not the problem in this case. Remember, from Main.pp I can TEditor.Create, set the caption, height and width, then call the LoadFile procedure so obviously the Create is ending. Seems like either SELF isn't passing or because I am holding the objects in a TStringList that the procedure calls are not working right. Still not sure if it's the compiler or me. Shane >>> Cliff Baeseman 05/10 9:26 AM >>> Shane, I ran across something very similar to the problem you where experiencing and had a hell of a time tracking it down. I was adding a instance of main form to a Tlist. The self call was not equating to anything once again. What was happening is that I moved the loadmainmenu to the create of TMain. I never did see create exit so I removed that call in create. Once I did this everything worked just fine. One thing you can try is to comment out the code in the file open method and try to create a instance of TEditor and see if it actually finishes the Create. It is almost like control is being passed to gtk_main somewhere in code causing a create to not continue. Cliff Baeseman - "If you kiss me, I'll turn into a beautiful princess." - "Look, I'm a computer programmer. I don't have time for girls, but a talking frog is very very cool." _________________________________________________________________ To unsubscribe: mail with "unsubscribe" as the Subject archives at http://www.miraclec.com/list_archives/lazarus _________________________________________________________________ To unsubscribe: mail with "unsubscribe" as the Subject archives at http://www.miraclec.com/list_archives/lazarus

Reply by email

Michael A. Hess
to Shane Miller: The create for TEditor does finish so that is not the problem in this case. Remember,…
Shane Miller wrote
Seems like either SELF isn't passing or because I am holding the objects in a TStringList that the procedure calls are not working right. Still not sure if it's the compiler or me.

Uh-Oh. If you are using a TStringList then that is more than likly what is causing your problem. TStringList which in turn uses AnsiStrings has some really nasty bug buried down inside some place. Michael VC is trying to find it and it is on the offical bug list. In my case I have had it mess up the program so that standard for..do loops would not work. I had to rewrite code to use repeat..until. If I had to make a guess it is this that is causing your problem. As a test set the {$H+} option at the top of your code and see if that doesn't help.

This is the same problem that makes TIniFiles
==== Programming my first best destiny! ====

Michael A. Hess Miracle Concepts, Inc.
http://www.miraclec.com

Reply by email

Shane Miller

Yes, I saw that. I am trying to determine how to get it setup as we speak (or 'type' in this case).

Shane

>> Cliff Baeseman 05/10 11:27 AM >>>

Did you see that 1.2 is ready for use?

Cliff

Earlier message 60 lines
-----Original Message----- From: Shane Miller Sent: Monday, May 10, 1999 11:14 AM To: Subject: Re: [lazarus] Shane's Class Self Error's The create for TEditor does finish so that is not the problem in this case. Remember, from Main.pp I can TEditor.Create, set the caption, height and width, then call the LoadFile procedure so obviously the Create is ending. Seems like either SELF isn't passing or because I am holding the objects in a TStringList that the procedure calls are not working right. Still not sure if it's the compiler or me. Shane >>> Cliff Baeseman 05/10 9:26 AM >>> Shane, I ran across something very similar to the problem you where experiencing and had a hell of a time tracking it down. I was adding a instance of main form to a Tlist. The self call was not equating to anything once again. What was happening is that I moved the loadmainmenu to the create of TMain. I never did see create exit so I removed that call in create. Once I did this everything worked just fine. One thing you can try is to comment out the code in the file open method and try to create a instance of TEditor and see if it actually finishes the Create. It is almost like control is being passed to gtk_main somewhere in code causing a create to not continue. Cliff Baeseman - "If you kiss me, I'll turn into a beautiful princess." - "Look, I'm a computer programmer. I don't have time for girls, but a talking frog is very very cool." _________________________________________________________________ To unsubscribe: mail with "unsubscribe" as the Subject archives at http://www.miraclec.com/list_archives/lazarus _________________________________________________________________ To unsubscribe: mail with "unsubscribe" as the Subject archives at http://www.miraclec.com/list_archives/lazarus _________________________________________________________________ To unsubscribe: mail with "unsubscribe" as the Subject archives at http://www.miraclec.com/list_archives/lazarus

Reply by email

Shane Miller

The create for TEditor does finish so that is not the problem in this case. Remember, from Main.pp I can TEditor.Create, set the caption, height and width, then call the LoadFile procedure so obviously the Create is ending.

Seems like either SELF isn't passing or because I am holding the objects in a TStringList that the procedure calls are not working right. Still not sure if it's the compiler or me.

Shane

>> Cliff Baeseman 05/10 9:26 AM >>>

Shane,

I ran across something very similar to the problem you where experiencing and had a hell of a time tracking it down.

I was adding a instance of main form to a Tlist. The self call was not equating to anything once again. What was happening is that I moved the loadmainmenu to the create of TMain. I never did see create exit so I removed that call in create. Once I did this everything worked just fine.

One thing you can try is to comment out the code in the file open method and try to create a instance of TEditor and see if it actually finishes the Create.

It is almost like control is being passed to gtk_main somewhere in code causing a create to not continue.

Cliff Baeseman

- "If you kiss me, I'll turn into a beautiful princess."
- "Look, I'm a computer programmer. I don't have time for girls, but a talking frog is very very cool."

_________________________________________________________________ To unsubscribe: mail with
"unsubscribe" as the Subject
archives at http://www.miraclec.com/list_archives/lazarus

Reply by email

Cliff Baeseman
to Shane Miller

yes you are right!

I was using a TList if that makes any difference I do not know. It was local to the TApplication object itself and not in a uses unit...

Cliff

Earlier message 55 lines
-----Original Message----- From: Shane Miller Sent: Monday, May 10, 1999 11:14 AM To: Subject: Re: [lazarus] Shane's Class Self Error's The create for TEditor does finish so that is not the problem in this case. Remember, from Main.pp I can TEditor.Create, set the caption, height and width, then call the LoadFile procedure so obviously the Create is ending. Seems like either SELF isn't passing or because I am holding the objects in a TStringList that the procedure calls are not working right. Still not sure if it's the compiler or me. Shane >>> Cliff Baeseman 05/10 9:26 AM >>> Shane, I ran across something very similar to the problem you where experiencing and had a hell of a time tracking it down. I was adding a instance of main form to a Tlist. The self call was not equating to anything once again. What was happening is that I moved the loadmainmenu to the create of TMain. I never did see create exit so I removed that call in create. Once I did this everything worked just fine. One thing you can try is to comment out the code in the file open method and try to create a instance of TEditor and see if it actually finishes the Create. It is almost like control is being passed to gtk_main somewhere in code causing a create to not continue. Cliff Baeseman - "If you kiss me, I'll turn into a beautiful princess." - "Look, I'm a computer programmer. I don't have time for girls, but a talking frog is very very cool." _________________________________________________________________ To unsubscribe: mail with "unsubscribe" as the Subject archives at http://www.miraclec.com/list_archives/lazarus _________________________________________________________________ To unsubscribe: mail with "unsubscribe" as the Subject archives at http://www.miraclec.com/list_archives/lazarus

Reply by email

Cliff Baeseman

Shane,

I ran across something very similar to the problem you where experiencing and had a hell of a time tracking it down.

I was adding a instance of main form to a Tlist. The self call was not equating to anything once again. What was happening is that I moved the loadmainmenu to the create of TMain. I never did see create exit so I removed that call in create. Once I did this everything worked just fine.

One thing you can try is to comment out the code in the file open method and try to create a instance of TEditor and see if it actually finishes the Create.

It is almost like control is being passed to gtk_main somewhere in code causing a create to not continue.

Cliff Baeseman

- "If you kiss me, I'll turn into a beautiful princess."
- "Look, I'm a computer programmer. I don't have time for girls, but a talking frog is very very cool."

Reply by email

Cliff Baeseman
to Michael A. Hess: Uh-Oh. If you are using a TStringList then that is more than likly what is causing your…

Yes this is probably why Tlist worked and TStringList did not...

Shane how about building a object sort of like

TSourceEdit = class
Caption: String
Editor: TEditor
Height: Integer
Width: Integer
Path: String
end

Using this in a standard list instead of a StringList....Just Grasping but this looked something like what you were doing.

When you load the object set your pointer to the internal var fmEditor to the created instance you should then be able to use self or the fmEditor in the internal code..

Cliff

Earlier message 32 lines
-----Original Message----- From: Michael A. Hess Sent: Monday, May 10, 1999 12:08 PM To: Subject: Re: [lazarus] Shane's Class Self Error's Shane Miller wrote: > > Seems like either SELF isn't passing or because I am holding the > objects in a TStringList that the procedure calls are not working > right. Still not sure if it's the compiler or me. Uh-Oh. If you are using a TStringList then that is more than likly what is causing your problem. TStringList which in turn uses AnsiStrings has some really nasty bug buried down inside some place. Michael VC is trying to find it and it is on the offical bug list. In my case I have had it mess up the program so that standard for..do loops would not work. I had to rewrite code to use repeat..until. If I had to make a guess it is this that is causing your problem. As a test set the {$H+} option at the top of your code and see if that doesn't help. This is the same problem that makes TIniFiles ==== Programming my first best destiny! ==== Michael A. Hess Miracle Concepts, Inc. http://www.miraclec.com _________________________________________________________________ To unsubscribe: mail with "unsubscribe" as the Subject archives at http://www.miraclec.com/list_archives/lazarus

Reply by email

Cliff Baeseman
to Michael A. Hess: Here is the only problem though. As per Peter: "The GTK version in the CVS is working for…

Sounds like a new challenge I will give it a whirl tonight unless Shane does it today he could send
us a copy of the binaries....

I am not sure of the date of the one I am running at home I installed the snapshot last tuesday...

Cliff

Earlier message 31 lines
-----Original Message----- From: Michael A. Hess Sent: Monday, May 10, 1999 12:01 PM To: Subject: Re: [lazarus] Shane's Class Self Error's Cliff Baeseman wrote: > > Did you see that 1.2 is ready for use? Here is the only problem though. As per Peter: "The GTK version in the CVS is working for gtk 1.2 and gtk 1.0. To compile the gtk sources you need a compiler snapshot dated after 8-5-99." The latest Linux snapshot is 4-5-99. Until we get a new Linux snapshot you will have to rebuild the compiler from CVS. I don't, do you? -- ==== Programming my first best destiny! ==== Michael A. Hess Miracle Concepts, Inc. http://www.miraclec.com _________________________________________________________________ To unsubscribe: mail with "unsubscribe" as the Subject archives at http://www.miraclec.com/list_archives/lazarus

Reply by email