Hello Wim,

I'm sorry but I'm unable to do so. I couldn't find out the reason, so I restarted the whole project and erased the old one. If I'm right, the only thing I've changed are the Construtor of the WApplication-Child. First it was only
NewApplication::NewApplication()
{
}

and now it is
NewApplication::NewApplication(const WEnvironment& env) : WApplication(env)
{
}

Greetings
Torsten

Am 26.03.2009 12:32, schrieb Wim Dumon:
Hello Torsten,

Could you run your application in valgrind? That will probably give
you more hints about what goes wrong.
If you can provide us with a test-case, we can look into this.

Best regards,
Wim.

2009/3/23 Torsten Schulz<[email protected]>:
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



------------------------------------------------------------------------------
_______________________________________________
witty-interest mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/witty-interest


------------------------------------------------------------------------------
_______________________________________________
witty-interest mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/witty-interest

Reply via email to