Hi,
I updated to the latest FLTK and rebuilt everything from scratch, but it still
crashes. Just to be safe, I will try to rebuild my application from scratch
also - a rather time-consuming build. Meanwhile, here's the error output and a
stacktrace from the crash:
First-chance exception at 0x01560e5c in remo3d_debug.exe: 0xC0000005: Access
violation writing location 0x01552102.
Unhandled exception at 0x01560e5c in remo3d_debug.exe: 0xC0000005: Access
violation writing location 0x01552102.
remo3d_debug.exe!Fl_Browser::item_select(void * item=0x015520f0, int val=0)
Line 123 + 0xd bytes C++
remo3d_debug.exe!Fl_Browser_::draw() Line 341 + 0xd bytes C++
remo3d_debug.exe!Fl_Group::draw_child(Fl_Widget & widget={...}) Line 731
C++
remo3d_debug.exe!Fl_Group::draw_children() Line 687 C++
remo3d_debug.exe!Fl_Group::draw() Line 702 C++
remo3d_debug.exe!Fl_Group::draw_child(Fl_Widget & widget={...}) Line 731
C++
remo3d_debug.exe!Fl_Group::draw_children() Line 687 C++
remo3d_debug.exe!Fl_Window::draw() Line 141 C++
remo3d_debug.exe!Fl_Double_Window::flush(int eraseoverlay=0) Line 322 C++
remo3d_debug.exe!Fl_Double_Window::flush() Line 256 + 0x11 bytes C++
remo3d_debug.exe!Fl_X::flush() Line 90 + 0x1c bytes C++
remo3d_debug.exe!WndProc(HWND__ * hWnd=0x00070d82, unsigned int uMsg=15,
unsigned int wParam=0, long lParam=0) Line 893
/Andreas
> Andreas Ekstrand wrote:
>
> > I don't set any when() condition on my buttons and I don't have any
> > callback on them. Instead, they are implemented as a button class of my
> > own, derived from Fl_Button, with a special handle method. The event
> > causing the call to clear() is a middle mouse button FL_PUSH, so that's
> > already the case.
>
> Okay, then you should only take care that you don't access the widget
> itself after calling clear(). Meanwhile I checked in the modified
> callback checks, so that you don't need the recently attached
> patches. Please use current svn or at least rev. 7115.
>
> > However, I can't test the latest code here because another widget crashes
> > in Fl_Browser_::draw() -> ... -> Fl_Browser::item_select. I have no idea
> > why but I will try to rebuild everything from scratch.
>
> That's strange. I hope that my recent changes didn't trigger this.
> If you can't find a bug in your application, then it would help
> if you can post a backtrace (gdb: bt) from after the crash.
>
> > If I can break away from that problem, would it make sense to change the
> > middle mouse button event causing the clear() from FL_PUSH to FL_RELEASE?
>
> No, I suspect that wouldn't help much. But if you can change it
> easily, I'd appreciate your test results with _both_ versions.
>
> This is just to get more data to analyze the fl_fix_focus event
> sending problem. It would probably be a great help for me to
> debug the problem, because your environment is different than
> mine.
>
> Albrecht
_______________________________________________
fltk-dev mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-dev