Koen, wt 3.2.2.2-rc1 solved the problem. For some reason I can not generate the isapi lib with this new version, but I am working on it.
Thanks a lot. Mario Diethelm ---------------------------------------------------------- Hey, 2012/7/12 <mari...@terra.cl>: > The problem arises when I try to add a new row (the data is added using a > WStandardItem's setItem() method directly over the WStandardItemModel widget). > If the dynamicSortFilter property is set to true, when the program loads > the data corresponding to the filtered column it crashes with the following > assertion failure message: "Expression: vector iterator + offset out of range". I believe we have fixed this bug recently. The fix is the following: diff --git a/src/Wt/WSortFilterProxyModel.C b/src/Wt/WSortFilterProxyModel.C index 1b3f08e..b85f303 100644 --- a/src/Wt/WSortFilterProxyModel.C +++ b/src/Wt/WSortFilterProxyModel.C @@ -555,9 +555,11 @@ void WSortFilterProxyModel::sourceDataChanged(const WModelIndex& topLeft, if (refilter || resort) { // Determine new insertion point: erase it temporarily for this - item->proxyRowMap_.erase(item->proxyRowMap_.begin() + oldMappedRow); + if (oldMappedRow != -1) + item->proxyRowMap_.erase(item->proxyRowMap_.begin() + oldMappedRow); int newMappedRow = mappedInsertionPoint(row, item); - item->proxyRowMap_.insert(item->proxyRowMap_.begin() + oldMappedRow, row); + if (oldMappedRow != -1) + item->proxyRowMap_.insert(item->proxyRowMap_.begin() + oldMappedRow, row); if (newMappedRow != oldMappedRow) { if (oldMappedRow != -1) { > - It is ok to load data directly to the WStandardItemModel widget or the > data must be loaded to the WSortFilterProxyModel widget? No, it should be okay to load data in the source model (WStandardItemModel in this case). > - Why does not seem possible to maintain automatic track on WStandardItemModel > widget changes? (the program crashes if dynamicSortFilter is set to true) Because of bug Can you try if applying the fix above (or moving to 3.2.2-rc1) resolves the issue ? Regards, koen ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ witty-interest mailing list witty-interest@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/witty-interest ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ witty-interest mailing list witty-interest@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/witty-interest