Home » U++ Library support » TabCtrl » [BUG - FIXED] Add() crashes system
[BUG - FIXED] Add() crashes system [message #11109] |
Mon, 20 August 2007 13:17 |
Mindtraveller
Messages: 917 Registered: August 2007 Location: Russia, Moscow rgn.
|
Experienced Contributor |
|
|
Short description: second call to TabCtrl::Add() causes system crash on Windows XP.
Steps:
1) Adding TabCtrl control to TopWindow with layout.
2) Adding some event (i.e. button push) to create new tab in TabCtrl control.
3) Event calls TabCtrl::Add()
4) Compiling, executing application
5) On SECOND button push system crashes.
Sample code:
void MainWindow::OnNewTab()
{
tabs.Add();
tabs.Refresh();
}
It is something obviously with Add(), because the same code with a call to Add(const char *) causes NO crash:
void MainWindow::OnNewTab()
{
tabs.Add("12345");
tabs.Refresh();
}
[Updated on: Mon, 20 August 2007 21:19] Report message to a moderator
|
|
|
Goto Forum:
Current Time: Thu Sep 12 00:43:31 CEST 2024
Total time taken to generate the page: 0.03845 seconds
|