Sign in Join

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

Mailing lists / lazarus / 1999-07

gtk_widget_show crashing problem...

6 messages · 4 people ·

Reply by email Subscribe to this list Your subscription

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

Shane Miller

OK, here's the problem. When we do a gtk_widget_show on the menu bar a RESIZE event is fired. For what component, I'm not quite sure yet.

When DispatchStr('resize') is called, C R A S H ! that's where the exceptionaddressstack error occurs.

I haven't gone deeper than that. It never gets past the dispatchstr function but it DOES it. It may have to do with the "TControl(data)" part of the call. Perhaps "data" isn't being sent correctly.

Shane

Reply by email

Michael A. Hess
to Shane Miller
Shane Miller wrote 6 lines
OK, here's the problem. When we do a gtk_widget_show on the menu bar a RESIZE event is fired. For what component, I'm not quite sure yet. When DispatchStr('resize') is called, C R A S H ! that's where the exceptionaddressstack error occurs.

Good trace job!

I haven't gone deeper than that. It never gets past the dispatchstr function but it DOES it. It may have to do with the "TControl(data)" part of the call. Perhaps "data" isn't being sent correctly.

That means the exception is coming out of the RTL. Do I understand correctly that the DispatchStr('resize') routine is called but it doesn't survive it? It never makes it to DoResize for whatever control it is being sent to, is that correct?

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

Reply by email

Shane Miller

Correct. Here's more info. I did a
Writeln('Event fired -'+mess); in each event to see which event fires. That's how I know "resize" fires.

Then I did this

Writeln('Event fired for '+tcontrol(data).caption);
and it displayed the main form's caption (Lazarus Editor v 0.0.0.0.0.0.0.0.1.2.0.0.40.5)
so it looks like DATA is being correctly sent.  Then it calls Dispatchstr('resize');

It tries to call it, but the TFOrm class never gets the RESIZE message and the program never comes back from DispatchStr without throwing that error...

Thoughts? Were getting closer at least....I was very happy to see the CAPTION actually display correctly.

Shane

>> "Michael A. Hess" 07/08 12:48 PM >>>
Shane Miller wrote 6 lines
OK, here's the problem. When we do a gtk_widget_show on the menu bar a RESIZE event is fired. For what component, I'm not quite sure yet. When DispatchStr('resize') is called, C R A S H ! that's where the exceptionaddressstack error occurs.

Good trace job!

I haven't gone deeper than that. It never gets past the dispatchstr function but it DOES it. It may have to do with the "TControl(data)" part of the call. Perhaps "data" isn't being sent correctly.

That means the exception is coming out of the RTL. Do I understand correctly that the DispatchStr('resize') routine is called but it doesn't survive it? It never makes it to DoResize for whatever control it is being sent to, is that correct?

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

Baeseman, Cliff

Are you throwing a ton of gtk errors before it crashes....???

Cliff

Earlier message 36 lines
-----Original Message----- From: Michael A. Hess Sent: Thursday, July 08, 1999 12:58 PM To: Subject: Re: [lazarus] gtk_widget_show crashing problem... Shane Miller wrote: > > OK, here's the problem. When we do a gtk_widget_show on the menu bar > a RESIZE event is fired. For what component, I'm not quite sure yet. > > When DispatchStr('resize') is called, C R A S H ! that's where the > exceptionaddressstack error occurs. Good trace job! > I haven't gone deeper than that. It never gets past the dispatchstr > function but it DOES it. It may have to do with the "TControl(data)" > part of the call. Perhaps "data" isn't being sent correctly. That means the exception is coming out of the RTL. Do I understand correctly that the DispatchStr('resize') routine is called but it doesn't survive it? It never makes it to DoResize for whatever control it is being sent to, is that correct? -- ==== 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

Peter Vreman
to Shane Miller: No, just the exceptionaddressstack error. Shane Are you throwing a ton of gtk errors…
Show quoted text 16 lines
> OK, here's the problem. When we do a gtk_widget_show on the menu bar > a RESIZE event is fired. For what component, I'm not quite sure yet. > > When DispatchStr('resize') is called, C R A S H ! that's where the > exceptionaddressstack error occurs. Good trace job! > I haven't gone deeper than that. It never gets past the dispatchstr > function but it DOES it. It may have to do with the "TControl(data)" > part of the call. Perhaps "data" isn't being sent correctly. That means the exception is coming out of the RTL. Do I understand correctly that the DispatchStr('resize') routine is called but it doesn't survive it? It never makes it to DoResize for whatever control it is being sent to, is that correct?

The you need to recompile the rtl with 'make OPT=-g' this will generate debugger info for the rtl units and you can also backtrace them nicely and even trace them with rhgdb/gdb

Reply by email

Shane Miller

No, just the exceptionaddressstack error.

Shane

>> "Baeseman, Cliff" 07/08 12:59 PM >>>

Are you throwing a ton of gtk errors before it crashes....???

Cliff

Earlier message 41 lines
-----Original Message----- From: Michael A. Hess Sent: Thursday, July 08, 1999 12:58 PM To: Subject: Re: [lazarus] gtk_widget_show crashing problem... Shane Miller wrote: > > OK, here's the problem. When we do a gtk_widget_show on the menu bar > a RESIZE event is fired. For what component, I'm not quite sure yet. > > When DispatchStr('resize') is called, C R A S H ! that's where the > exceptionaddressstack error occurs. Good trace job! > I haven't gone deeper than that. It never gets past the dispatchstr > function but it DOES it. It may have to do with the "TControl(data)" > part of the call. Perhaps "data" isn't being sent correctly. That means the exception is coming out of the RTL. Do I understand correctly that the DispatchStr('resize') routine is called but it doesn't survive it? It never makes it to DoResize for whatever control it is being sent to, is that correct? -- ==== 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 _________________________________________________________________ To unsubscribe: mail with "unsubscribe" as the Subject archives at http://www.miraclec.com/list_archives/lazarus

Reply by email