Mindtraveller Messages: 917 Registered: August 2007 Location: Russia, Moscow rgn.
Experienced Contributor
One more little bug. Happens when all the tabs are closed and after that parent window is being closed. Parent window invokes Accept() for all the children, and TabBar::GetData() is called. Due to one can`t set TabBar::SetCursor(-1) before all it`s tabs are closed, TabBar tries to Get(0) and fails with ASSERT.
There are many ways to correct this. The simplest one is checking if there are any tabs in TabBar before trying to Get anything: