|
|
On 4/28/2024 6:29 AM, Manolo wrote:
Fl_Window.cxx line 595 :
Fl_Widget* p = parent(); for (;p->visible();p = p->parent()) {}
has been unchanged since at least 30 october 2002 (22 years). So, it's
surprising a null pointer derefencing
popups up today. We should know exactly if the crash is caused by p
being null and p->visible()
being attempted. It could be that p has been deleted before which
would be another kind of
error, more likely in the client program.
Now that I know where to look, I printed out the pointers with:
if (visible()) {
printf("FL_HIDE:\n");
Fl_Widget* p = parent();
for (;p->visible();p = p->parent())
{
printf("\t%p\n", p);
printf("\tparent=%p\n", p->parent());
}
if (p->type() >= FL_WINDOW) break; // don't do the unmap
}
FL_HIDE:
0000016A4D2ED8B0
parent=0000000000000000
I don't know what more proof do you want.
--
Gonzalo Garramuño
ggarra13@gmail.com
--
You received this message because you are subscribed to the Google Groups "fltk.coredev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to fltkcoredev+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/fltkcoredev/55d8ab70-387c-45c7-9143-9e78615524ed%40gmail.com.
[ Direct Link to Message ] | |
|
| |