Unmanaged Exports DLL RRS feed

  • Question

  • Hello everyone,

    I'm trying to return a function to java using Java Native Access. But the issue is the function I'm calling from java uses different system dll. So when I call from java I'm getting error such as "Invalid access memory" or "one of the dependency is missing " ans exists. Can anyone know what could be the issue?

    I'm using unmanaged exports library from nuget to for exporting DLL


            public static void start()
                Console.WriteLine("This is start");
                Thread t = new Thread(new ThreadStart(func));
                process_collocated = false;

    But when i run from java it's not even printing "This is start". Can anyone help me how to make it run successfully?


    Monday, April 23, 2018 10:48 PM

All replies

  • Hi Wenchung Shang,

    Thank you for posting here.

    For your question is more related to java, you could post a new thread in StackOverFlow.


    The CLR Forum discuss and ask questions about .NET Framework Base Classes (BCL) such as Collections, I/O, Regigistry, Globalization, Reflection. Also discuss all the other Microsoft libraries that are built on or extend the .NET Framework, including Managed Extensibility Framework (MEF), Charting Controls, CardSpace, Windows Identity Foundation (WIF), Point of Sale (POS), Transactions.

    Best Regards,


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    Tuesday, April 24, 2018 6:18 AM