
OK. Here is the incriminated part of the main :
void Main_MPP( void )
{
boost::shared_ptr<OGRRectangle> rect( new OGRRectangle(5.,TPoint2D
<double>(50.,20.),0.1325) );
boost::shared_ptr< rectangle_with_profile<OGRRectangle> > r( new
rectangle_with_profile<OGRRectangle> ( rect , 5 , 12 , 1.5 , EXTREME) );
//OGRRectangle destructor is call here ...
r->DisplayConsole();
}
Here is the OGRRectangle class :
class OGRRectangle : public OGRPolygon
{
public:
OGRRectangle() {};
OGRRectangle( const double &width , const TPoint2D <double> ¢er ,
const double &angle=0. );
OGRRectangle( const TPoint2D <double> ¢er , const double &width ,
const double &height , const double &angle=0. );
OGRRectangle( const TPoint2D <double> &TopLeft , const TPoint2D <double>
&BottomRight , const double &angle=0. );
~OGRRectangle() {SORTIEMESSAGE("Destruction OGRRectangle
..."<
Olivier Tournaire wrote:
No one can help me ?
Can you post a complete program that shows the error? I see nothing wrong with your code snippets.
_______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
-- Le temps des cerises reviendra. Dans l'immédiat, c'est le temps des noyaux. Courage.