Unmanaged code interface : Java JNI vs .NET interoperability

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Sai Kit Tong

    #1

    Unmanaged code interface : Java JNI vs .NET interoperability

    Hi,

    I am developing a new application running on Windows platform that needs to
    interface with existing legacy code - written in basic C / C++. I am trying
    to evaluate Java vs C# implementations . Originally, I have the impression
    that C# should be a clear winner.

    I started with Java and using the guideline from the book "Java Native
    Interface". Though complex, the book provide details of the practical
    implementation and potential pitfalls for poor implementation. Particularly,
    it provides a clear picture on life cycle managment, garbage collection,
    exception handling (responsibility ) and retaining of object oriented
    implementation (one-to-one mapping). However, when I switched my focus on
    C#, I had difficult in finding good literature and examples for handling
    those issues. I checked Chapter 1 of "COM and .NET Interoperabilit y" and
    Chapter 15/16 of "Essential Guide to Managed Extensions for C++". Hence,
    that makes me lean on the Java implementation that the C# implementation -
    based on the fact that I know what I will get in details. Did I miss any
    information critical? Could anyone point me to better article in this
    particular aspect?

    Thanks in advance.


  • Jeffrey Tan[MSFT]

    #2
    RE: Unmanaged code interface : Java JNI vs .NET interoperabilit y


    Hi Sai,

    There is a good book give you a deeply insight into the .net framework:
    <Applied .net framework programming> by Jeffrey Richter
    It talks much about GC, Exception and so on.

    Also, you can have a clear look at .net GC in these 2 articles:
    http://msdn.microsoft.com/msdnmag/issues/1100/gci/
    http://msdn.microsoft.com/msdnmag/issues/1200/GCI2/

    Hope this helps.
    Jeffrey Tan
    Microsoft Online Partner Support
    Get Secure! - www.microsoft.com/security
    This posting is provided "as is" with no warranties and confers no rights.

    --------------------
    | From: "Sai Kit Tong" <sktong@mmm.com >
    | Subject: Unmanaged code interface : Java JNI vs .NET interoperabilit y
    | Date: Fri, 12 Sep 2003 14:38:42 -0500
    | Lines: 24
    | X-Priority: 3
    | X-MSMail-Priority: Normal
    | X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
    | X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
    | Message-ID: <uap95VWeDHA.17 32@TK2MSFTNGP12 .phx.gbl>
    | Newsgroups: microsoft.publi c.dotnet.langua ges.csharp
    | NNTP-Posting-Host: 130.99.229.109
    | Path: cpmsftngxa06.ph x.gbl!TK2MSFTNG P08.phx.gbl!TK2 MSFTNGP12.phx.g bl
    | Xref: cpmsftngxa06.ph x.gbl microsoft.publi c.dotnet.langua ges.csharp:1845 01
    | X-Tomcat-NG: microsoft.publi c.dotnet.langua ges.csharp
    |
    | Hi,
    |
    | I am developing a new application running on Windows platform that needs
    to
    | interface with existing legacy code - written in basic C / C++. I am
    trying
    | to evaluate Java vs C# implementations . Originally, I have the impression
    | that C# should be a clear winner.
    |
    | I started with Java and using the guideline from the book "Java Native
    | Interface". Though complex, the book provide details of the practical
    | implementation and potential pitfalls for poor implementation.
    Particularly,
    | it provides a clear picture on life cycle managment, garbage collection,
    | exception handling (responsibility ) and retaining of object oriented
    | implementation (one-to-one mapping). However, when I switched my focus on
    | C#, I had difficult in finding good literature and examples for handling
    | those issues. I checked Chapter 1 of "COM and .NET Interoperabilit y" and
    | Chapter 15/16 of "Essential Guide to Managed Extensions for C++". Hence,
    | that makes me lean on the Java implementation that the C# implementation -
    | based on the fact that I know what I will get in details. Did I miss any
    | information critical? Could anyone point me to better article in this
    | particular aspect?
    |
    | Thanks in advance.
    |
    |
    |

    Comment

    Working...