Hi Toni,

        To fix the problem you need to use a Smart pointer variable of the 
superclass and cast it to your concrete factory:

        dynModuleExecutionImpl::Factory::Pointer baseFactory;
        baseFactory = uc::dynModuleUnicoreExecution::Factory::New( );

        uc::dynModuleUnicoreExecution::Factory::Pointer p;
        p = dynamic_cast<uc::dynModuleUnicoreExecution::Factory*> ( 
baseFactory.GetPointer() );

Best,
Xavi

-----Original Message-----
From: antoni artigues [mailto:[email protected]] 
Sent: lunes, 09 de mayo de 2011 15:35
To: Xavier Planes
Cc: [email protected]
Subject: RE: [Gimias-developers] Instantiation error dynModuleExecutionImpl

Hello Xavi,

Thanks for the answer. The two includes don't solve the problem.

I send you the header file

Thanks

Regards

Antoni Artigues

El lun, 09-05-2011 a las 14:25 +0200, Xavier Planes escribió:
> blSmartPointer.h


------------------------------------------------------------------------------
WhatsUp Gold - Download Free Network Management Software
The most intuitive, comprehensive, and cost-effective network 
management toolset available today.  Delivers lowest initial 
acquisition cost and overall TCO of any competing solution.
http://p.sf.net/sfu/whatsupgold-sd
_______________________________________________
Gimias-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gimias-developers

Reply via email to