Hi,

I don't find out the reason, so I hope you're able to help me.

I created an application with subclass. In these subclass I tested the following:


WSelectionBox *userListBox;

userManagementTable->elementAt(0,0)->addWidget(userListBox = new WSelectionBox());

userListBox->activateItemStyles();

userListBox->setModel(new WStandardItemModel(0, 1, userListBox));

userListBox->setStyleClass("userlistxyz");
userListBox->addItem(name);

WString styleClass = "userinactive";

userListBox->model()->setData(userListBox->count() -1, 0, boost::any(styleClass, StyleClassRole);


But sometimes (not ever) the application crashed with following reason:

*** glibc detected *** /home/tsschulz/Programme/WtDMS/WtDMS.wt: corrupted double-linked list: 0x08081518 ***

======= Backtrace: =========

/lib/libc.so.6[0xb772a654]


If I don't use the last line (userListBox->model()->...) the application don't crash, and if I use the code in the parent class, it don't crash too. But the class where I used the code will never destroyed, so I don't think it's a pointer-problem.

Do you have any idea what's the reason of these error?

Greetings
Torsten
------------------------------------------------------------------------------
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
_______________________________________________
witty-interest mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/witty-interest

Reply via email to