Hi, all

I am really stuct in the issue mentioned below.

I have the java server based on spring framework which exposes its
bean called PreferenceService on iiop and registered it to Jac naming
service.

The client is developed on Visual studio 2005 using mico orb 2.3.12
version which i complied on VS2005.

I have an valuetype PrefrenceValues which is an sequence of
PrefenceValue and there is an StringPreferenceValue which inherits
from PreferenceValue.

Code details:
1. QPPBinding.sln is the solution file it contains client code.

2. The PreferenceService has and interface called GetPreferenceValues
which Retruns the PreferenceValues which is sequence of
PreferenceValue.

3. It is properly demarshalled and constructed at client side but when
i try to downcast the PreferenceValue object to stringPrefereceValue
object then the dynamic cast fails.although the typeid shows the
object is of type StringPreference value.

It is very strange that if i compile the client on VC7/Visual Studios
2002 then the same code works using the mico build 2.3.12 compiled on
vc7
and Also
on Gcc 401 version the same piece of code is working on mac osx using
mico 2.3.12 build on mac 10.4.2 (Tiger).The client works perfectly

In all these cases above no change has been made in the Java Server.
The main client code is written in the PreferenceClient.cpp file.

Please help out to solve the problem i am unable to understand whether
it is an issue of the mico on vc8 or what ?

The complete source code of the client  and Server is attached

Thanks in advance

Regards
gerry
_______________________________________________
Mico-devel mailing list
[email protected]
http://www.mico.org/mailman/listinfo/mico-devel

Reply via email to