RV: [omniORB] Managed code in Visual Studio .NET
Javier Osa
josa@tracasa.es
Wed Jun 12 07:37:00 2002
Hello,
I have avoided '_var' type variable problems using '_ptr' type variable
and when I need to free memory I use CORBA::release(...).
I have discovered another problem. After of using _narrow(...) function I
used to call CORBA::is_nil(...), but now I can't call is_nill(...) function
because always returns 'true' when it isn't nill.
Except these problems the rest works well. I use the same OmniORB DLLs
that I worked on VC6.
Josu, Have you compiled the OmniORB DLL on VC7?
Any problems?
What version of OmniORB?
Thanks...
Xavier Osa
-----Mensaje original-----
De: omniorb-list-admin@realvnc.com
[mailto:omniorb-list-admin@realvnc.com]En nombre de Josu Larranaga
Enviado el: martes, 11 de junio de 2002 11:52
Para: omniorb
Asunto: Re: [omniORB] Managed code in Visual Studio .NET
Hello,
I didn't success on the port from VC6 to VC7. I tried to use programs
compiled on VC7 with a VC6 compiled OmniORB dll,
it had lots of problems on the heap deallocation, some on the ' _var'
type variable release, some on memory corruption,
tracing omniORB tcp packages showed errors, problems when more than 16K
were exchanged, etc.
I didn't pay much attention to it, as many sources errors were
identified. In order work out the problem you should compile omniORB
first on VC7.
if you try in usual way you will get a python.h include definition
error, so you have better compile python first with VC7. It would be
nice you could
have python compiled on managed code.
Javier Osa wrote:
>
> I wish to migrate code from VC6 to VC7 in Visual Studio .NET. My proyect
is
>a client DLL (tccedulacli.dll) that gets a reference of ORB server Object
>from nameservice and calls one of his methods.
>
> I have used a Managed C++ Class Library project because I want to use it
>from NET components.
>
> This DLL runs fine in VC6 but when it runs under VC7 results in exceptions
>being thrown at run-time ...
>
>".....
> An unhandled exception of type 'System.TypeLoadException' occurred in
>tccedulacli.dll
> Additional information: Could not load type omniObjectManager from
>assembly TCCedulaCli, Version=1.0.891.28114, Culture=neutral,
>PublicKeyToken=null.
>....."
>
> This exception occurs when the constructor of an '_var' type variable of
my
>own classes defined in IDL file is called, but doesn`t occurr if the '_var'
>type variable is Object_var.
> Has someone succeeded with ORB clients from Managed code in VS.NET?
>
> Thanks
>
> Xavier Osa
>
>
>_______________________________________________
>omniORB-list mailing list
>omniORB-list@realvnc.com
>http://www.realvnc.com/mailman/listinfo/omniorb-list
>
>
_______________________________________________
omniORB-list mailing list
omniORB-list@realvnc.com
http://www.realvnc.com/mailman/listinfo/omniorb-list