|
From: <mor...@us...> - 2010-07-09 11:50:20
|
Revision: 3849
http://ecell.svn.sourceforge.net/ecell/?rev=3849&view=rev
Author: moriyoshi
Date: 2010-07-09 11:50:12 +0000 (Fri, 09 Jul 2010)
Log Message:
-----------
* Fix segmentation fault
Modified Paths:
--------------
ecell3/trunk/ecell/dm/PythonProcessBase.hpp
Modified: ecell3/trunk/ecell/dm/PythonProcessBase.hpp
===================================================================
--- ecell3/trunk/ecell/dm/PythonProcessBase.hpp 2010-07-09 11:49:40 UTC (rev 3848)
+++ ecell3/trunk/ecell/dm/PythonProcessBase.hpp 2010-07-09 11:50:12 UTC (rev 3849)
@@ -67,7 +67,7 @@
}
}
- ~PythonProcessBase()
+ virtual ~PythonProcessBase()
{
// ; do nothing
}
@@ -155,7 +155,7 @@
// extract 'this' Process's methods and attributes
boost::python::object aPySelfProcess(
- boost::python::ptr( reinterpret_cast< libecs::Process* >( this ) ) );
+ boost::python::ptr( dynamic_cast< libecs::Process* const >( this ) ) );
theGlobalNamespace[ "self" ] = aPySelfProcess;
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|