[ace-users] a objects convertion problem in ACE Service
Configurator framework
Douglas C. Schmidt
schmidt at dre.vanderbilt.edu
Thu Aug 23 19:56:08 CDT 2007
Hi,
Thanks for providing us with your version info.
>ubuntu 6.06
>g++ 4.0
>gdb
>ACE 5.5.0
Please upgrade to ACE+TAO+CIAO x.5.10 (i.e., ACE 5.5.10, TAO 1.5.10, and
CIAO 0.5.10), which you can download from
http://download.dre.vanderbilt.edu
under the heading: "Latest Beta Kit".
The DOC groups at Washington University, UC Irvine, and Vanderbilt
University only provide "best effort" support for non-sponsors for the
latest release, as described in
http://www.dre.vanderbilt.edu/~schmidt/DOC_ROOT/ACE/docs/ACE-bug-process.html
Thus, if you need more "predictable" help for earlier versions of
ACE+TAO, I recommend that you check out
http://www.dre.vanderbilt.edu/support.html
for a list of companies that will provide you with ACE+TAO commercial
support.
Thanks,
Doug
> I use ACE Service Configurator framework to set my program.there
>is a shared object libDllTest.so, a class called DllTest inherited
>form ACE_Service_Object and IInterface. IInterface is a interface.
>
> according to C++NP2, i write a class ACE_Dynamic_Service.
>
> ACE_Service_Object* obj =
>ACE_Dynamic_Service<ACE_Service_Object>::instance("DllTest"); this is
>right, the obj is non-null.
>
> but this sentence.IInterface* face =
>ACE_Dynamic_Service<IInterface>::instance("DllTest"); the returned
>value face is null.
>
> through analysis, i find the prolem occurs on ACE_dynamic_cast.
> in the ACE_Dynamic_Service's decleration.
> ACE_Service_Object *obj= ACE_static_cast(ACE_Service_Object*, type-
>>object()); this line is right.obj is non-null.
> return ACE_dynamic_cast(Type*, obj); here is wrong.
>
> I don't know whether i put my code on here. this is my first time to
>use usenet.
>
> thanks for your kind.
>
> regards.
>
--
Dr. Douglas C. Schmidt Professor and Associate Chair
Electrical Engineering and Computer Science TEL: (615) 343-8197
Vanderbilt University WEB: www.dre.vanderbilt.edu/~schmidt
Nashville, TN 37203 NET: d.schmidt at vanderbilt.edu
More information about the Ace-users
mailing list