Code: Select all
wxCHECK_RET( sb, wxT("this window is not scrollable") );
Code: Select all
#0 0x00007ffff72a161d in wxWindow::SetScrollbar(int, int, int, int, bool) (this=0x555556296de0, orient=8, pos=0, thumbVisible=0, range=1)
at ../src/gtk/window.cpp:5910
#1 0x0000555555a78aff in Bart::GUI_WX::Text_Frame::Text_Frame(wxWindow*, bool, wxPoint const&, wxSize const&) (this=0x555556296aa0, parent=0x0, b=false, pos=..., size=...) at ../textwnd.cpp:1642
#2 0x000055555593ba3b in Main_Frame::Main_Frame(wxString const&) (this=0x555556158000, title=...) at ../frame.cpp:8625
#3 0x00005555555e381b in MyApp::OnInit() (this=0x555555f1c260) at ../app.cpp:103
#4 0x00005555555e3fcd in wxAppConsoleBase::CallOnInit() (this=0x555555f1c260) at /usr/local/include/wx-3.1/wx/app.h:93
#5 0x00007ffff6c81420 in wxEntry(int&, wchar_t**) (argc=@0x7ffff6fef270: 1, argv=0x555555f1c140) at ../src/common/init.cpp:491
#6 0x00007ffff6c81527 in wxEntry(int&, char**) (argc=@0x7fffffffdf5c: 1, argv=0x7fffffffe048) at ../src/common/init.cpp:519
#7 0x00005555555e376c in main(int, char**) (argc=1, argv=0x7fffffffe048) at ../app.cpp:94
(gdb) list
5945 GtkRange * const sb = m_scrollBar[dir];
5946 wxCHECK_RET( sb, wxT("this window is not scrollable") );
5947
5948 // This check is more than an optimization. Without it, the slider
5949 // will not move smoothly while tracking when using wxScrollHelper.
5950 if (GetScrollPos(orient) != pos)
5951 {
5952 g_signal_handlers_block_by_func(
5953 sb, (void*)gtk_scrollbar_value_changed, this);
5954
(gdb) print dir
$1 = 1
(gdb) print m_scrollBar[dir]
$2 = 0x0
Thanks,
Rob.