mirror of
https://git.salome-platform.org/gitpub/modules/geom.git
synced 2025-04-24 01:32:05 +05:00
Fixed BUG with omniORB refCount. see file comment
This commit is contained in:
parent
0483cfa3b7
commit
4c5ba18e8d
@ -38,7 +38,16 @@
|
||||
GEOM_IOperations_i::GEOM_IOperations_i(PortableServer::POA_ptr thePOA, GEOM::GEOM_Gen_ptr theEngine, ::GEOM_IOperations* theImpl)
|
||||
:SALOME::GenericObj_i( thePOA ), _impl(theImpl), _engine(theEngine)
|
||||
{
|
||||
thePOA->activate_object(this);
|
||||
// Win32 porting: the next line is dangerous - GEOM_IOperations_i is an intermediate
|
||||
// base class, therefore <this> is not completely constructed here ->
|
||||
// passing it to activate_object() leads to unpredictable behavior
|
||||
// resulted from memory corruption ( Rational Purify reports ABR errors ).
|
||||
// Moreover, all GEOM_IxxxOperation_i servant classes are activated implicitly
|
||||
// by GEOM_Gen_i::GetxxxOperations() methods.
|
||||
// Therefore, this line is commented.
|
||||
// In case if <thePOA> does not have ImplicitActivation policy, then
|
||||
// activate_object() calls will be necessary in all GEOM_IxxxOperation_i constructors!
|
||||
//thePOA->activate_object(this);
|
||||
}
|
||||
|
||||
//=============================================================================
|
||||
|
Loading…
x
Reference in New Issue
Block a user