Menu

#12 VB.NET cannot handle CORBA out parameters

open
None
5
2003-06-25
2003-06-25
No

A method parameter with the 'out' modifier in CORBA IDL
maps to the C# 'out' modifier. However, VB.NET does
not have an equivalent to the 'out' modifier.

VB.NET does have ByRef, which is usually used for
output parameters in .NET programming. However,
Remoting.Corba needs to distiguish between 'out'
and 'inout' parameters, due to different marshaling rules.
If you try to use ByRef with a CORBA 'out' parameter,
there will be a marshaling exception.

Some mechanism must be devised to allow distinction of
an 'out' parameter from an 'inout' parameter for VB.NET
users of Remoting.Corba.

Discussion


Log in to post a comment.