On Wed, 11 Oct 2006, Gurminder Singh wrote:


Hi, karel


I am stuck with the issue I reported to u earlier. I have been working
on resolving this issue for last 14 days but no success. Please help me
out

PROBLEM STATEMENT:

i have the java server based on spring framework which exposes its been
called  SessionService on iiop and registered it on jac naming service.

The client is developed on Visual studio 2005 using mico orb
"mico-cl8-10.4.06"  (special build by soran for vc2005 ) version which i
complied on VS2005.

I have an valuetype seq1_ Session  which is an sequence of Session
valuetype corresponding to this value type I have factory registered
with orb to construct this on client side.

Problem I face is when I make a call Get AllSession() on SessionService
which returns the seq1_session

The call is successful , I get the se1_session.

I iterate over the seq1_session and get the session valuetype

Up to this every thing work fine but when I try to dynamically cast the
session value type to session_impl (which is a wrapper over the OBV
session class )

first of all, why do you need to downcast to implementation class? Isn't it better to move needed functionality to the public OBV interface?

The dynamic_cast fail it return me the NULL. But if I use the typeid to
check the object type on session it gives me the session_impl

I  have debug the mico code and what is found is  seq1_session
demarshalling is proper. I can sess the session valuetype properly get
constructed and the data is properly

Filled in the session valuetype. I get the properly build sequence.  But
not able to understand the why I am not able to dynamic_cast it to
session_impl when the object it created at the time of demashal is
session_impl in the call create_for_unmarshal in session factory.

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

Gcc 401 version I get the same problem. The dynamic_cast fails.

IIRC you've had those issues with only VC2005, you were able to compile working code with GCC and VC2002, has anything changed on this? Anyway, so far it looks like compiler or compiler parameters issue...

Cheers,
Karel
--
Karel Gardas                  [EMAIL PROTECTED]
ObjectSecurity Ltd.           http://www.objectsecurity.com
---
Need experienced, fast, reliable technical MICO support?
---> http://www.objectsecurity.com/mico_commsup_referral.html <---
---
_______________________________________________
Mico-devel mailing list
[email protected]
http://www.mico.org/mailman/listinfo/mico-devel

Reply via email to