Sign in Join

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

Mailing lists / lazarus / 1999-09

TNotebook error

14 messages · 5 people ·

Reply by email Subscribe to this list Your subscription

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

Shane Miller

Actually the

gtk_notebook_insert_page(blah, blah, blah)

was complaining that the
widget->parent
was NOT nil. The procedure evidiently calls gtk_widget_set_parent inside the gtk_notebook_insert_page. The gtk_widget_set_parent claims that the widget->parent was NOT nil and it should be so I set them to nil and I don't get the gtk error (in gtkobject.inc Procedure AddNBPage). However, I still don't see the notebook. I'm not sure what the issue is yet.

I'll update CVS with what I did so far.

Shane

>> "Shane Miller" 09/22/99 02:25PM >>>

Right now it looks like during the TNBPages.Insert, it sends a semdmessage3 and in the LM_ADDPAGE, it is complaining that the parent widget = nil.

I'm still looking into it though.

Shane

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

Reply by email

Curtis White
to Shane Miller: Well, I figured out that problem, but it still doesn't display the notebook. Can you…

OK, I will fix the example so it is correct and see if things start showing up again.

I will also take a to see if it is correct.

Curtis

On 23-Sep-99 Shane Miller wrote 78 lines
Well, I figured out that problem, but it still doesn't display the notebook. Can you rewrite your exampl,e in the examples directory. It appears to me that all the relevent code is commented out and that causes the example to crash. I mujst be mmissing something yet because it's still not appearing. Look at my MIAN.PP code, in the FormCreate and tell me if I am using the notebook correctly. Shane >>> Curtis White 09/23/99 12:03AM >>> Oh, that is excellent that you figured out that error. I know it has been getting that error for a while now, but I hadn't had time to track it down. So it sounds like you got it fixed. Thank you. I really appreciate your help with looking into these problems with notebook. It is a huge help to me. Curtis On 22-Sep-99 Shane Miller wrote: > Actually the > > gtk_notebook_insert_page(blah, blah, blah) > > was complaining that the > widget->parent > was NOT nil. The procedure evidiently calls gtk_widget_set_parent inside > the > gtk_notebook_insert_page. The gtk_widget_set_parent claims that the > widget->parent was NOT nil and it should be so I set them to nil and I don't > get the gtk error (in gtkobject.inc Procedure AddNBPage). However, I still > don't see the notebook. I'm not sure what the issue is yet. > > I'll update CVS with what I did so far. > > Shane > > > >>>> "Shane Miller" 09/22/99 02:25PM >>> > Right now it looks like during the TNBPages.Insert, it sends a semdmessage3 > and in the LM_ADDPAGE, it is complaining that the parent widget = nil. > > I'm still looking into it though. > > Shane > > > _________________________________________________________________ > 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 ---------------------------------- Curtis White Curtis White http://www.teleport.com/~osiriz/ ---------------------------------- _________________________________________________________________ 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

----------------------------------
Curtis White
Curtis White
http://www.teleport.com/~osiriz/
----------------------------------

Reply by email

Shane Miller

Right now it looks like during the TNBPages.Insert, it sends a semdmessage3 and in the LM_ADDPAGE, it is complaining that the parent widget = nil.

I'm still looking into it though.

Shane

Reply by email

Shane Miller
Very interesting. How were you able to determine this? When I got the

error, it

kept giving me all kinds of strange GTK errors, but I don't remember any of them saying anything about the parent being nil. Instead, I received errors

like

the following: Gtk-CRITICAL **: file gtkfixed.c: line 176 (gtk_fixed_move): assertion

`widget

!= NULL' failed. Gtk-CRITICAL **: file gtkwidget.c: line 3731 (gtk_widget_set_usize):

assertion

`widget != NULL' failed. Is this the same error messages you were getting? And if so, how were you

able

to determine that it was complaining about the "parent" not being null? I

see

it is complaining about "widget != NULL", but that doesn't tell me it is

the

parent it is having a problem with. So how were you able to determine that?

Those are NOT the errors I was getting. I was actually getting the error Gtk-CRITICAL **: file gtksomething.c: line ??? (gtk_parent_set): assertion `widget == NULL' failed.

I wish I could figure out GDB because it seems to be very helpful to people

who

know it. But I can't seem to be able to figure out how to use it with FPC

to

help me debug things. I just don't understand how to use it for some

reason. It

just isn't clicking. Does anyone know of any good tutorials or anything to

help

me figure out how to use GDB to debug my FPC code?

I don't use gdb either because I never looked at it to see if it was easy or not. I just don't know how to use it either.

------------------------------------------------------------ Shane Miller

Get paid to surf the net!
http://alladvantage.com/go.asp?refid=DEX-870

Home page : http://www.lakefield.net/~smiller

Auto-IP Publisher : http://www.lakefield.net/~smiller/autoip

Advanced Clipboard : http://www.lakefield.net/~smiller/advclipboard

Lazarus : http://www.miraclec.com/lazarus
----------------------------------------------------------

Earlier message 97 lines
-----Original Message----- From: Curtis White To: Date: Thursday, September 23, 1999 9:44 PM Subject: Re: [lazarus] TNotebook error >Very interesting. How were you able to determine this? When I got the error, it >kept giving me all kinds of strange GTK errors, but I don't remember any of >them saying anything about the parent being nil. Instead, I received errors like >the following: > >Gtk-CRITICAL **: file gtkfixed.c: line 176 (gtk_fixed_move): assertion `widget >!= NULL' failed. > >Gtk-CRITICAL **: file gtkwidget.c: line 3731 (gtk_widget_set_usize): assertion >`widget != NULL' failed. > > >Is this the same error messages you were getting? And if so, how were you able >to determine that it was complaining about the "parent" not being null? I see >it is complaining about "widget != NULL", but that doesn't tell me it is the >parent it is having a problem with. So how were you able to determine that? > >I wish I could figure out GDB because it seems to be very helpful to people who >know it. But I can't seem to be able to figure out how to use it with FPC to >help me debug things. I just don't understand how to use it for some reason. It >just isn't clicking. Does anyone know of any good tutorials or anything to help >me figure out how to use GDB to debug my FPC code? > > >Curtis > >On 22-Sep-99 Shane Miller wrote: >> Actually the >> >> gtk_notebook_insert_page(blah, blah, blah) >> >> was complaining that the >> widget->parent >> was NOT nil. The procedure evidiently calls gtk_widget_set_parent inside the >> gtk_notebook_insert_page. The gtk_widget_set_parent claims that the >> widget->parent was NOT nil and it should be so I set them to nil and I don't >> get the gtk error (in gtkobject.inc Procedure AddNBPage). However, I still >> don't see the notebook. I'm not sure what the issue is yet. >> >> I'll update CVS with what I did so far. >> >> Shane >> >> >> >>>>> "Shane Miller" 09/22/99 02:25PM >>> >> Right now it looks like during the TNBPages.Insert, it sends a semdmessage3 >> and in the LM_ADDPAGE, it is complaining that the parent widget = nil. >> >> I'm still looking into it though. >> >> Shane >> >> >> _________________________________________________________________ >> 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 > >---------------------------------- >Curtis White >Curtis White >http://www.teleport.com/~osiriz/ >---------------------------------- > >_________________________________________________________________ > To unsubscribe: mail with > "unsubscribe" as the Subject > archives at http://www.miraclec.com/list_archives/lazarus >

Reply by email

Curtis White
to Shane Miller: Actually the gtk_notebook_insert_page(blah, blah, blah) was complaining that the…

Oh, that is excellent that you figured out that error. I know it has been getting that error for a while now, but I hadn't had time to track it down. So it sounds like you got it fixed. Thank you.

I really appreciate your help with looking into these problems with notebook. It is a huge help to me.

Curtis

On 22-Sep-99 Shane Miller wrote 36 lines
Actually the gtk_notebook_insert_page(blah, blah, blah) was complaining that the widget->parent was NOT nil. The procedure evidiently calls gtk_widget_set_parent inside the gtk_notebook_insert_page. The gtk_widget_set_parent claims that the widget->parent was NOT nil and it should be so I set them to nil and I don't get the gtk error (in gtkobject.inc Procedure AddNBPage). However, I still don't see the notebook. I'm not sure what the issue is yet. I'll update CVS with what I did so far. Shane >>> "Shane Miller" 09/22/99 02:25PM >>> Right now it looks like during the TNBPages.Insert, it sends a semdmessage3 and in the LM_ADDPAGE, it is complaining that the parent widget = nil. I'm still looking into it though. Shane _________________________________________________________________ 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

----------------------------------
Curtis White
Curtis White
http://www.teleport.com/~osiriz/
----------------------------------

Reply by email

Curtis White
to Shane Miller: Actually the gtk_notebook_insert_page(blah, blah, blah) was complaining that the…

Very interesting. How were you able to determine this? When I got the error, it kept giving me all kinds of strange GTK errors, but I don't remember any of them saying anything about the parent being nil. Instead, I received errors like the following:

Gtk-CRITICAL **: file gtkfixed.c: line 176 (gtk_fixed_move): assertion `widget != NULL' failed.

Gtk-CRITICAL **: file gtkwidget.c: line 3731 (gtk_widget_set_usize): assertion `widget != NULL' failed.

Is this the same error messages you were getting? And if so, how were you able to determine that it was complaining about the "parent" not being null? I see it is complaining about "widget != NULL", but that doesn't tell me it is the parent it is having a problem with. So how were you able to determine that?

I wish I could figure out GDB because it seems to be very helpful to people who know it. But I can't seem to be able to figure out how to use it with FPC to help me debug things. I just don't understand how to use it for some reason. It just isn't clicking. Does anyone know of any good tutorials or anything to help me figure out how to use GDB to debug my FPC code?

Curtis

On 22-Sep-99 Shane Miller wrote 36 lines
Actually the gtk_notebook_insert_page(blah, blah, blah) was complaining that the widget->parent was NOT nil. The procedure evidiently calls gtk_widget_set_parent inside the gtk_notebook_insert_page. The gtk_widget_set_parent claims that the widget->parent was NOT nil and it should be so I set them to nil and I don't get the gtk error (in gtkobject.inc Procedure AddNBPage). However, I still don't see the notebook. I'm not sure what the issue is yet. I'll update CVS with what I did so far. Shane >>> "Shane Miller" 09/22/99 02:25PM >>> Right now it looks like during the TNBPages.Insert, it sends a semdmessage3 and in the LM_ADDPAGE, it is complaining that the parent widget = nil. I'm still looking into it though. Shane _________________________________________________________________ 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

----------------------------------
Curtis White
Curtis White
http://www.teleport.com/~osiriz/
----------------------------------

Reply by email

Shane Miller

Well, I figured out that problem, but it still doesn't display the notebook. Can you rewrite your exampl,e in the examples directory. It appears to me that all the relevent code is commented out and that causes the example to crash.

I mujst be mmissing something yet because it's still not appearing. Look at my MIAN.PP code, in the FormCreate and tell me if I am using the notebook correctly.

Shane

>> Curtis White 09/23/99 12:03AM >>>

Oh, that is excellent that you figured out that error. I know it has been getting that error for a while now, but I hadn't had time to track it down. So it sounds like you got it fixed. Thank you.

I really appreciate your help with looking into these problems with notebook. It is a huge help to me.

Curtis

On 22-Sep-99 Shane Miller wrote 36 lines
Actually the gtk_notebook_insert_page(blah, blah, blah) was complaining that the widget->parent was NOT nil. The procedure evidiently calls gtk_widget_set_parent inside the gtk_notebook_insert_page. The gtk_widget_set_parent claims that the widget->parent was NOT nil and it should be so I set them to nil and I don't get the gtk error (in gtkobject.inc Procedure AddNBPage). However, I still don't see the notebook. I'm not sure what the issue is yet. I'll update CVS with what I did so far. Shane >>> "Shane Miller" 09/22/99 02:25PM >>> Right now it looks like during the TNBPages.Insert, it sends a semdmessage3 and in the LM_ADDPAGE, it is complaining that the parent widget = nil. I'm still looking into it though. Shane _________________________________________________________________ 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

----------------------------------
Curtis White
Curtis White
http://www.teleport.com/~osiriz/
----------------------------------

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

Reply by email

Stefan Hille
to Shane Miller: error, it like `widget assertion able see the Those are NOT the errors I was getting. I…
Stefan Hille wrote 10 lines
Hi! On Sun, Sep 26, 1999 at 07:21:17PM +0200, Marc Weustink wrote: > What's the staus of TBitmap > > Marc I just send a private email to Jean to ask about that. If he won't answer or no longer wants to maintain that code I can contribute some code to read any kind of bitmap.

I already got an answer from Jean. He can't work on lazarus for some time because of a computer crash and has also lost some of his lazarus work.

Since he offered me to send the basic code for TBitMap and some other componets I'll try to integrate that stuff. Hope I can do it round about weekend.

bye,

Stefan

--------------------------------------------------------- Stefan Hille email: 48155 Muenster voice: 0251/664695

Reply by email

Stefan Hille
to Shane Miller: error, it like `widget assertion able see the Those are NOT the errors I was getting. I…

Hi!

Marc Weustink wrote
What's the staus of TBitmap Marc

I just send a private email to Jean to ask about that. If he won't answer or no longer wants to maintain that code I can contribute some code to read any kind of bitmap.

bye,

Stefam

--------------------------------------------------------- Stefan Hille email: 48155 Muenster voice: 0251/664695

Reply by email

Stefan Hille
to Shane Miller: error, it like `widget assertion able see the Those are NOT the errors I was getting. I…

Hi!

Marc Weustink wrote
What's the staus of TBitmap Marc

I have a first version ready now but can't commit before tomorrow.

Current status is:

- You can load a bitmap
- you can display a bitmap but it's not displayed with the right colors

Q: Does anybody know anything about this? Since I don't know too much about GTK/X color scheme I have no idea what happens there. Could this be the result of different PUT-modes of the GTK put_pixel function? (I currently use it as introduced in gtkobject by Shane)

- My example sometimes dumps core. This seems to happen whenever the bitmap's size is greater than the current window size.

Q: How can I check the size of the actual window? (This should be done in the SetPixel function in gtkobject.inc)

bye,

Stefan

--------------------------------------------------------- Stefan Hille email: 48155 Muenster voice: 0251/664695

Reply by email

Cliff Baeseman

I am sure we can figure out the color thing... Cannot wait to see it.

Cliff

Earlier message 46 lines
-----Original Message----- From: Stefan Hille To: Date: Sunday, October 03, 1999 6:21 PM Subject: Re: [lazarus] Status TBitmap >Hi! > >On Sun, Sep 26, 1999 at 07:21:17PM +0200, Marc Weustink wrote: >> What's the staus of TBitmap >> >> Marc > >I have a first version ready now but can't commit before tomorrow. > >Current status is: > > - You can load a bitmap > - you can display a bitmap but it's not displayed with the right > colors > > Q: Does anybody know anything about this? Since I don't know too much > about GTK/X color scheme I have no idea what happens there. Could > this be the result of different PUT-modes of the GTK put_pixel > function? (I currently use it as introduced in gtkobject by Shane) > > - My example sometimes dumps core. This seems to happen whenever the > bitmap's size is greater than the current window size. > > Q: How can I check the size of the actual window? (This should be done > in the SetPixel function in gtkobject.inc) > >bye, > > Stefan >-- >--------------------------------------------------------- >Stefan Hille email: >48155 Muenster voice: 0251/664695 > >_________________________________________________________________ > To unsubscribe: mail with > "unsubscribe" as the Subject > archives at http://www.miraclec.com/list_archives/lazarus >

Reply by email

Stefan Hille
to Cliff Baeseman

Hi Cliff!

Cliff Baeseman wrote
I am sure we can figure out the color thing... Cannot wait to see it.

Thanks for this nice feedback. Sorry to tell you that I spend this evening in a pub (aeehh, restaurant;-) instad of working on lazarus:-(.

A few minutes ago I took another quick look at the code and decided to wait with the 1st release for another 1 or 2 days. Mainly because I want to speed up/clean up things. Hope you can wait that long.

bye,

Stefan

--------------------------------------------------------- Stefan Hille email: 48155 Muenster voice: 0251/664695

Reply by email

Cliff Baeseman

That is ok I am working a little pub action tonight myself, I mean drinking my home brew stout while sitting behind the monitor.

Cheers
Cliff

Earlier message 33 lines
-----Original Message----- From: Stefan Hille To: Date: Monday, October 04, 1999 6:07 PM Subject: Re: [lazarus] Status TBitmap >Hi Cliff! > >On Sun, Oct 03, 1999 at 06:40:21PM -0500, Cliff Baeseman wrote: >> I am sure we can figure out the color thing... Cannot wait to see it. > >Thanks for this nice feedback. Sorry to tell you that I spend this evening >in a pub (aeehh, restaurant;-) instad of working on lazarus:-(. > >A few minutes ago I took another quick look at the code and decided to >wait with the 1st release for another 1 or 2 days. Mainly because I want >to speed up/clean up things. Hope you can wait that long. > >bye, > > Stefan > >-- >--------------------------------------------------------- >Stefan Hille email: >48155 Muenster voice: 0251/664695 > >_________________________________________________________________ > To unsubscribe: mail with > "unsubscribe" as the Subject > archives at http://www.miraclec.com/list_archives/lazarus >

Reply by email