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 » U++ Library : Other (not classified elsewhere) » Bug in AddColumn of ArrayCtrl
Bug in AddColumn of ArrayCtrl [message #11254] Wed, 29 August 2007 06:42 Go to next message
mikepol is currently offline  mikepol
Messages: 4
Registered: August 2007
Junior Member
Hi,

My application is crashing in the following situation:

I have a top main window with ArrayCtrl child. In the constructor of the window I post a callback to a member function of the main window:

PostCallback(THISBACK(func))

Where func is defined as follows:

void MainWindow::func()
{
array_ctrl.AddColumn("COLUMN");
}

And this crashes my program. Is this a bug or am I just doing something illegal? I am using MINGW MT Shared Libs Optimal build configuration (Windows).
Thank you for any help.

[Updated on: Wed, 29 August 2007 06:42]

Report message to a moderator

Re: Bug in AddColumn of ArrayCtrl [message #11258 is a reply to message #11254] Wed, 29 August 2007 09:47 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
Hard to say - too little info. Please, post complete testcase (a zipped package directory which I can compile and crash..)

Mirek
Re: Bug in AddColumn of ArrayCtrl [message #11271 is a reply to message #11254] Wed, 29 August 2007 14:26 Go to previous messageGo to next message
mikepol is currently offline  mikepol
Messages: 4
Registered: August 2007
Junior Member
Hi Mirek,

Sorry about that, I have included a complete package with a test case as zip file. Thanks.
Re: Bug in AddColumn of ArrayCtrl [message #11272 is a reply to message #11271] Wed, 29 August 2007 15:17 Go to previous messageGo to next message
mrjt is currently offline  mrjt
Messages: 705
Registered: March 2007
Location: London
Contributor
Works in GCC with 708-dev2b.
Re: Bug in AddColumn of ArrayCtrl [message #11284 is a reply to message #11254] Thu, 30 August 2007 22:34 Go to previous message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
Interesting bug, thank you. You must have been the first to AddColumn using PostCallback Smile

Quick Fix:

CtrlLib/HeaderCtrl.cpp 104:

HeaderCtrl::Column& HeaderCtrl::Add()
{
	oszcx = -1;
	return Tab(col.GetCount());
}


Mirek
Previous Topic: Process Class wrapper for pipes in windows/linux
Next Topic: Why no SetKbdDelay? :) I'm missing something aren't I..
Goto Forum:
  


Current Time: Fri Apr 26 23:40:44 CEST 2024

Total time taken to generate the page: 0.01725 seconds