Skip to Content.
Sympa Menu

cgal-discuss - [cgal-discuss] Anyone could help me on mesh_3_plugin loading error?

Subject: CGAL users discussion list

List archive

[cgal-discuss] Anyone could help me on mesh_3_plugin loading error?


Chronological Thread 
  • From: Ephemera <>
  • To:
  • Subject: [cgal-discuss] Anyone could help me on mesh_3_plugin loading error?
  • Date: Thu, 29 Nov 2012 07:19:18 -0800 (PST)

Anyone could help me on mesh_3_plugin loading error?
All built on Mesh_3 is right, but there was an exception that is not handled
when Mesh_3 was loading mesh_3_plugin. The calling stack where the interrupt
happened is described as the following pic.
<http://cgal-discuss.949826.n4.nabble.com/file/n4656326/error.png>
The codes in qobject.h are
template <class T>
inline T qobject_cast(QObject *object)
{
#if !defined(QT_NO_QOBJECT_CHECK)

reinterpret_cast<T>(object)->qt_check_for_QOBJECT_macro(*reinterpret_cast<T>(object));
#endif
* return
static_cast<T>(reinterpret_cast<T>(object)->staticMetaObject.cast(object));*}

The codes in Polyhedron_demo_mesh_3_plugin.cpp are:
bool applicable() const {
*return
qobject_cast<Scene_polyhedron_item*>(scene->item(scene->mainSelectionIndex()));*

}

The codes in Mainwindow.cpp are:
bool MainWindow::initPlugin(QObject* obj)
{
QObjectList childs = this->children();
Plugin_interface* plugin =
qobject_cast<Plugin_interface*>(obj);
if(plugin) {
// Call plugin's init() method
* plugin->init(this, this->scene, this);*
Q_FOREACH(QAction* action, plugin->actions()) {
// If action does not belong to the menus, add it to "Operations" menu
if(!childs.contains(action)) {
ui->menuOperations->addAction(action);
}
// Show and enable menu item
addAction(action);
}
return true;
}

The bold codes are interrupt point.




--
View this message in context:
http://cgal-discuss.949826.n4.nabble.com/Anyone-could-help-me-on-mesh-3-plugin-loading-error-tp4656326.html
Sent from the cgal-discuss mailing list archive at Nabble.com.



Archive powered by MHonArc 2.6.18.

Top of Page