Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » TabCtrl » [BUG - FIXED] Add() crashes system
[BUG - FIXED] Add() crashes system [message #11109] Mon, 20 August 2007 13:17 Go to previous message
Mindtraveller is currently offline  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

 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Deleting Tabs
Next Topic: Why this doesn't work ?
Goto Forum:
  


Current Time: Fri Mar 29 06:49:31 CET 2024

Total time taken to generate the page: 0.01277 seconds