Sign in Join

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

Mailing lists / lazarus / 2002-09

Error drawing modal window (for Andrew)

4 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

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

Tony Maro
to Tony Maro: I have been randomly getting errors when drawing a modal window. It doesn't seem to…
Tony Maro wrote
Gdk-ERROR **: BadWindow (invalid Window parameter) serial 5179 error_code 3 request_code 15 minor_code 0

Okay, I spoke too soon. I hit send... go back and run program... got:

Gdk-Error **: BadDrawable (invalid Pixmap or Window parameter) serial 5006 error_code 9 request_code 14 minor_code 0

Here's my guess...

Your hack to show/hide/show the window works great - but something is trying to draw on the window while it's hidden and bombing it??? Just a guess. I'm no GTK programmer, you know.

-Tony

Reply by email

Tony Maro

I have been randomly getting errors when drawing a modal window.

It doesn't seem to happen every time, and there is absolutely nothing I do different to trigger it... I mean it - there is NOTHING I do different between a time it will crash and a time it won't. I can't faithfully reproduce it, but it happens about 30% of the time when running the application for the first time after build, and seems to happen 100% of the time when a fresh install on a new machine (I have a test bed of 5 machines running 3 different versions of Mandrake...)

When launching the modal form (with bsDialog set) sometimes my app crashes and gives me:

Gdk-ERROR **: BadWindow (invalid Window parameter) serial 5179 error_code 3 request_code 15 minor_code 0

The "serial" code changes, but the others stay the same.

It only happens the FIRST time I launch the program after build (I think.)

It happens AFTER the initial flicker of the modal window appearing.

It happens only on the modal form my program launches

By the way... I thought it strange that I launch the program the first time after build I get the flicker on the modal window of it appearing, disappearing and reappearing. I can then close the app completely, reopen the app and it doesn't flicker. I can understand it not flickering on subsequent displays within the same execution of the app - but I'm surprised it doesn't re-flicker when I launch the program an entirely separate time.

-Tony

Reply by email

Andrew Johnson

On 29 Sep 2002 20:35:19 -0500
"Tony Maro"

Your hack to show/hide/show the window works great - but something is trying to draw on the window while it's hidden and bombing it??? Just a guess. I'm no GTK programmer, you know.

This is indeed possible....

I found out how to fix this hack, sort of. it turns out that using realize works the way you expect on window's... so (I found this out from my handy new book) I can do :

Realize
set flags
show

and flicker goes away, and if your problem is related to the code, it should too.. but I really don't want to keep flooding the list with these problems and fixes etc.. SO I will try my fix and send it directly to you to see if it resolves this issue and we can do that etc. and if we can fix this and any other issues I can send in one patch in a few days resolving these issues..(OH, did you make sure you updated Laz. from CVS to get the other fixes I sent last night?)

(BTW I think you are certainly trying to push Lazarus toward beta-dom with all these bugs your finding... keep it up, and pretty soon we will have a nice functional release....I hope!)

Andrew

_________________________________________________________________ MSN Photos is the easiest way to share and print your photos: http://photos.msn.com/support/worldwide.aspx

Reply by email

Tony Maro
to Andrew Johnson
Andrew Johnson wrote
issues..(OH, did you make sure you updated Laz. from CVS to get the other fixes I sent last night?)

Yep!

(BTW I think you are certainly trying to push Lazarus toward beta-dom with all these bugs your finding... keep it up, and pretty soon we will have a nice functional release....I hope!)

Who said it's not functional? I'm 80% done with my third useful application already! It's painful, but functional! I'd still be struggling through books on C or Java working on my first test application if it wasn't for Lazarus... And you guys have been awesome about addressing the bugs as I actually find them.

Speaking of which, who was it that was going to redo the headers for the sndlib? It won't be about another week and I'll be ready for that again.

I'll try and start using bugtracker on the website for these bugs, except when related to a specific patch or update just submitted to CVS. Might make things easier to manage. I hadn't realized the bugtracker was there until someone used it the other day.

-Tony

Reply by email