Sign in Join

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

Mailing lists / lazarus / 1999-12

Editor crashing when adding text

29 messages · 3 people ·

Reply by email Subscribe to this list Your subscription

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

Marc Weustink
to Shane Miller: OK, I got past that. Now I added a mwPasSyn1 component to TestForm and created it and…
you wrote
OK, I got past that. Now I added a mwPasSyn1 component to TestForm and

created it and assigned it appropriatly.

What's that ?

It crashes in TmwPasSyn.NullProc but we are further. I will continue looking at this stuff tomorrow. Feel free to examine it.

I really hope to get something working.

also, the SETTEXT button does a lines.add now instead of a lines :=
'Lazarus test';

Great !
Till now it didn't do anything or it crashed.

Marc

Reply by email

Marc Weustink
to Marc Weustink: + From: Shane Miller + + Positive. The error occurs iwhen it's assigning a default +…
Michael A. Hess wrote 8 lines
Marc Weustink wrote: > > Hmmm.. "-*-helvetica-bold-r-normal--*-120-*-*-*-*-iso8859-1" might be > a bit to specific I just built a valid string from setting the font in Gedit. This way I knew it was a font I had and a valid font string. It still cored. So it doesn't have anything to do with the font being missing.

Can someone just mail me the last lines of output before it dies ?

Marc

Reply by email

Michael A. Hess
to Shane Miller: I did the same thing. What version of GTK are you on? I think I'm running 1.2.1 yet…
Shane Miller wrote
What version of GTK are you on? I think I'm running 1.2.1 yet

I had to check myself. I'm still running 1.2.0 on my development workstation. I'll be upgrading to RedHat 6.1 in the next several days. That should bump me up a bit.

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

Reply by email

Michael A. Hess
to Marc Weustink: + From: Shane Miller + + Positive. The error occurs iwhen it's assigning a default +…
Marc Weustink wrote
Hmmm.. "-*-helvetica-bold-r-normal--*-120-*-*-*-*-iso8859-1" might be a bit to specific

I just built a valid string from setting the font in Gedit. This way I knew it was a font I had and a valid font string. It still cored. So it doesn't have anything to do with the font being missing.

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

Reply by email

Shane Miller

I did the same thing. What version of GTK are you on? I think I'm running 1.2.1 yet Shane

>> 12/06/99 12:10PM >>>
Marc Weustink wrote
Hmmm.. "-*-helvetica-bold-r-normal--*-120-*-*-*-*-iso8859-1" might be a bit to specific

I just built a valid string from setting the font in Gedit. This way I knew it was a font I had and a valid font string. It still cored. So it doesn't have anything to do with the font being missing.

==== 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

Michael A. Hess
to Marc Weustink: + From: Shane Miller + + The editor currently crashes in the function + CreateDefaultFont…
Marc Weustink wrote 9 lines
+ From: Shane Miller + + The editor currently crashes in the function + CreateDefaultFont in gtkwinapi.inc file when you press the + SETTEXT button. I am looking at why this is. + Shane can you give me the last lines ot the debug output. I guess I have the same problem here :-( and not at home)

This is the same problem I am having that I reported to you yesterday.

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

Reply by email

Michael A. Hess
to Marc Weustink: before you start looking for events (like paint and size), I all already changed that. It…
Marc Weustink wrote
before you start looking for events (like paint and size), I all already changed that. It is only to instable to commit, maybe later this evening.

Is that why things like buttons still do not show up? I thought you mentioned that that problem had been fixed but it still doesn't work for me. Is that because you haven't commited the fix yet?

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

Reply by email

Marc Weustink
to Shane Miller: Positive. The error occurs iwhen it's assigning a default font. Perhaps my system…

+ From: Shane Miller
+
+ Positive. The error occurs iwhen it's assigning a default
+ font. Perhaps my system doesn't HAVE that
+ font....hmmm....maybe that's the issue. I just updated from
+ CVS and it again crashed.
+
+ I wonder if it's an error with loading that specific font as
+ the default. I'll make the dafult font more generic and see
+ if it loads....

If the font can't be found the gdk_Font_Load returns a nil.

Hmmm.. "-*-helvetica-bold-r-normal--*-120-*-*-*-*-iso8859-1" might be a bit to specific

helvetica 120 should be enough.

Marc

Reply by email

Shane Miller

OK, I got past that. Now I added a mwPasSyn1 component to TestForm and created it and assigned it appropriatly.

It crashes in TmwPasSyn.NullProc but we are further. I will continue looking at this stuff tomorrow. Feel free to examine it. I really hope to get something working.

also, the SETTEXT button does a lines.add now instead of a lines := 'Lazarus test';

Shane

>> 12/06/99 02:33PM >>>
you wrote
8 worked!!!!!! Hmmm...interesting huh? Now I can move forward at least....

Allright !!

Its a problem I ran into a ew weeks ago (but then the other way around)

It seems that GDK/GTK doesn't like to display bitmaps other than the color depth you are running.

A bitmap canvas has a gtk pixmap. By default I created them at a depth of 32, since at that time I didn't put time in asking the depth of the system. I assumed that, like windows, a 32 bit pixmap could be rendered at 8 (on my system I only have a depth of 8). This caused like wise messages at the most strange places (when a button click was handled). So for the time beeing I defaulted the pixmap depth to 8 (again assuming that a 8 bit pixmap could be rendered at higher resolutions) Today we found out that these assumptions aren't correct. I might look to another way to render bitmaps of a different depth.

Marc

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

Reply by email

Marc Weustink
to Shane Miller: 8 worked!!!!!! Hmmm...interesting huh? Now I can move forward at least.... Shane If…
you wrote
8 worked!!!!!! Hmmm...interesting huh? Now I can move forward at least....

Allright !!

Its a problem I ran into a ew weeks ago (but then the other way around)

It seems that GDK/GTK doesn't like to display bitmaps other than the color depth you are running.

A bitmap canvas has a gtk pixmap. By default I created them at a depth of 32, since at that time I didn't put time in asking the depth of the system. I assumed that, like windows, a 32 bit pixmap could be rendered at 8 (on my system I only have a depth of 8). This caused like wise messages at the most strange places (when a button click was handled). So for the time beeing I defaulted the pixmap depth to 8 (again assuming that a 8 bit pixmap could be rendered at higher resolutions) Today we found out that these assumptions aren't correct. I might look to another way to render bitmaps of a different depth.

Marc

Reply by email

Shane Miller

The error is a gdk error that is caused by the gdk_font_load function call. What version of GDK are you running on the system that works? I can't see how it's our code causing the error. the error is:

GDK-Error **: BadValue (integer parameter out of range for operation) serial 1370 error_code 2 request_code 53 minor_code 0

aborting...

Shane

>> 12/06/99 11:13AM >>>

+ From: Shane Miller
+
+ The editor currently crashes in the function
+ CreateDefaultFont in gtkwinapi.inc file when you press the
+ SETTEXT button. I am looking at why this is.
+
Shane can you give me the last lines ot the debug output. I guess I have the same problem here :-( and not at home)

Marc

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

Reply by email

Shane Miller

8 worked!!!!!!

Hmmm...interesting huh? Now I can move forward at least....

Shane

>> 12/06/99 01:45PM >>>
you wrote 6 lines
Marc Weustink wrote: > > What color depth are you guys running ?? 32 on my machine.

If possible can you try at 8 and see if the problem still exists ?

PS: I wasn't sure of you time zone that is why I said yesterday. :-)

GMT+1

Marc

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

Reply by email

Michael A. Hess
to Marc Weustink: + From: Shane Miller + + Positive. The error occurs iwhen it's assigning a default +…
Marc Weustink wrote 7 lines
If the font can't be found the gdk_Font_Load returns a nil. Hmmm.. "-*-helvetica-bold-r-normal--*-120-*-*-*-*-iso8859-1" might be a bit to specific helvetica 120 should be enough.

I just tried

"-*-helvetica-*-*-*--*-120-*-*-*-*-iso8859-1"

and it still cored. :-\

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

Reply by email

Shane Miller

The editor currently crashes in the function CreateDefaultFont in gtkwinapi.inc file when you press the SETTEXT button. I am looking at why this is.

Shane

Reply by email

Marc Weustink
to Marc Weustink: + From: Shane Miller + + The editor currently crashes in the function + CreateDefaultFont…
you wrote 12 lines
Marc Weustink wrote: > > + From: Shane Miller > + > + The editor currently crashes in the function > + CreateDefaultFont in gtkwinapi.inc file when you press the > + SETTEXT button. I am looking at why this is. > + > Shane can you give me the last lines ot the debug output. I guess I > have the same problem here :-( and not at home) This is the same problem I am having that I reported to you yesterday.

For me it was in the middle of the night or just in the morning ;-)

Marc

Reply by email

Marc Weustink
to Shane Miller: The error is a gdk error that is caused by the gdk_font_load function call. What version…
you wrote
The error is a gdk error that is caused by the gdk_font_load function call. What version of GDK are you running on the system that works? I can't see

how it's our code causing the error. the error is:

Show quoted text 5 lines
GDK-Error **: BadValue (integer parameter out of range for operation) serial 1370 error_code 2 request_code 53 minor_code 0 aborting...

Ah, (someway my mail mixed up so I didn't see this reply :-(

What color depth are you guys running ??

Marc

Reply by email

Shane Miller

Positive. The error occurs iwhen it's assigning a default font. Perhaps my system doesn't HAVE that font....hmmm....maybe that's the issue. I just updated from CVS and it again crashed.

I wonder if it's an error with loading that specific font as the default. I'll make the dafult font more generic and see if it loads....

Shane

>> 12/06/99 11:04AM >>>

+ From: Shane Miller
+
+ The editor currently crashes in the function
+ CreateDefaultFont in gtkwinapi.inc file when you press the
+ SETTEXT button. I am looking at why this is.

HUH, this should work. Are you sure you have the latest version ??

Marc

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

Reply by email

Marc Weustink
to Marc Weustink: before you start looking for events (like paint and size), I all already changed that. It…
you wrote 14 lines
Marc Weustink wrote: > > >Is that why things like buttons still do not show up? I thought you > >mentioned that that problem had been fixed but it still doesn't work > >for me. Is that because you haven't commited the fix yet? > > No. The image I sent to you was from the executable I made last friday > as a result of the changes that day. These are committed (as far as I > know) I just cycled a new everything. New compiler, FCL, and LCL. When I build the hello application in the examples I still do not get any button. It doesn't draw the button on the screen. You said you know what was causing that. Do you and did you fix it?

I assumed that is was placed outside the screen. That part is fixed. I think you have another problem.
Can you mail me the exe ?

Marc

Reply by email

Marc Weustink
to Marc Weustink: before you start looking for events (like paint and size), I all already changed that. It…
you wrote 9 lines
Marc Weustink wrote: > > before you start looking for events (like paint and size), I all > already changed that. It is only to instable to commit, maybe later > this evening. Is that why things like buttons still do not show up? I thought you mentioned that that problem had been fixed but it still doesn't work for me. Is that because you haven't commited the fix yet?

No. The image I sent to you was from the executable I made last friday as a result of the changes that day. These are committed (as far as I know)

Marc

Reply by email

Michael A. Hess
to Marc Weustink: before you start looking for events (like paint and size), I all already changed that. It…
Marc Weustink wrote 8 lines
>Is that why things like buttons still do not show up? I thought you >mentioned that that problem had been fixed but it still doesn't work >for me. Is that because you haven't commited the fix yet? No. The image I sent to you was from the executable I made last friday as a result of the changes that day. These are committed (as far as I know)

I just cycled a new everything. New compiler, FCL, and LCL. When I build the hello application in the examples I still do not get any button. It doesn't draw the button on the screen. You said you know what was causing that. Do you and did you fix it?

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

Reply by email

Marc Weustink
to Marc Weustink: before you start looking for events (like paint and size), I all already changed that. It…
you wrote 12 lines
Marc Weustink wrote: > > I assumed that is was placed outside the screen. That part is fixed. I > think you have another problem. > Can you mail me the exe ? You can build it yourself. Go into /lazarus/examples and do a "make hello" This should have a button in the very middle of the window that says "Close".

Ah, thats an easy one.

Since now (or for while), to show a control is has to have at least a Parent. In the past the owner was erroneous used as a parent. (The owner is the VCL/LCL class owner, not the graphical owner). Thats why the button doid show up in the past and didnt till now.
(You can try to create a button without parent in Delphi!)

Marc

Reply by email

Michael A. Hess
to Marc Weustink: before you start looking for events (like paint and size), I all already changed that. It…
Marc Weustink wrote
I assumed that is was placed outside the screen. That part is fixed. I think you have another problem. Can you mail me the exe ?

You can build it yourself. Go into /lazarus/examples and do a "make hello"

This should have a button in the very middle of the window that says "Close".

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

Reply by email