Hi friends...
Can any one give me the solutions....
Then I got the error like this......Code:int *m_ptr_ptr = new com::att::ib::Core_V1_0::NVPair ....... ....... ....... void com::att::ib::Core_V1_0::IT_Gen_NVPairStreamable::replace_nonshareable_arg( CORBA::IT_InStream_ptr is, unsigned long _direction ) { if (*m_ptr_ptr != 0) { if (m_own_value|| _direction == CORBA::ARG_OUT) { delete *m_ptr_ptr; } if (_direction != CORBA::ARG_INOUT) { *m_ptr_ptr = 0; } if (_direction == CORBA::ARG_IN) { m_own_value = IT_TRUE; } } read(is); }
==============================================
Passing '*this->m_ptr_ptr' as parameter after its value was freed.
==============================================
Also I want to know Can we delete a pointer like this?????
delete *m_ptr_ptr; // is it correct
delete m_ptr_ptr; // or is it correct