Re: [gtk-list] Re: Gtk--: Tracking down clobbered pointers and mysterious crashes
- From: Guillaume Laurent <glaurent worldnet fr>
- To: gtk-list redhat com
- Subject: Re: [gtk-list] Re: Gtk--: Tracking down clobbered pointers and mysterious crashes
- Date: 20 May 1999 22:02:33 +0200
Emmanuel DELOGET <pixel@DotCom.FR> writes:
> ->1) Does anybody have any suggestions for some (software)
> ->tools which might aid in discovering these obsucre bugs?
>
> Well... gdb does it right, no ? [I'm so impatient
> to see your response to this stupid answer... :)]
Err, no, it doesn't. Sheesh, and to say that the EPITA is renowed as a
school for the high-tech elite :-).
> Could you provide some example code of what you
> "typically" do ? Some common errors in such cases
> look like :
Another typical one, harder to track and easier to do :
class MyWidget
{
...
Gtk_VBox m_vbox;
};
MyWidget::MyWidget()
{
Gtk_Button myButton("a button");
m_vbox.pack_start(myButton);
}
myButton will be destroyed on exit of the ctor.
--
Guillaume.
http://www.worldnet.fr/~glaurent
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]