Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6978469
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T17:45:40+00:00 2026-05-27T17:45:40+00:00

I am trying to use a .NET DLL from Java code ( Through a

  • 0

I am trying to use a .NET DLL from Java code ( Through a C++ native code).

Flow is like this.

  1. Created .net DLL using C# class library type project from visual studio 2010.

  2. Created native C++ code (Console application) to use this DLL Using this step-by-step guide from Microsoft This code is able to successfully calls DLL code.

  3. Wrote Java code with some native methods, generated headers and implemented header in C++ DLL project(moved original code from example in relevant methods,made some variables global).

This DLL is loaded successfully, but the code fails while creating Interface pointer for Managed class.

see snipper from microsoft guide

 // Create the interface pointer.
ICalculatorPtr pICalc(__uuidof(ManagedClass));

Please note this call returns successfully for console application, but when called though JNI flow, JVM crashes.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T17:45:41+00:00Added an answer on May 27, 2026 at 5:45 pm

    My java code was running within a 64bit JVM, replaced in with a 32bit one and no more JVM crashes.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to use the EntLib 3.1 within .net code for a dll which
Is it possible to build a .dll created from a class library in ASP.NET
I'm trying to use native dll, using DllImport. And I receive such error. System.DllNotFoundException:
I'm trying to use the .NET debugging API from C++. For this I initialize
I am trying to create a .NET DLL so I can use the cryptographic
I'm trying to use TestDriven.Net not only to test my code, but to call
I'm trying to use a .NET assembly from VB6 via interop without placing it
I'm trying to use the lame_enc.dll file from LAME in a C# project, but
I am trying to use the GPS_DEVICE structure from within .NET CF 3.5 and
I am wrapping some native C++ code in a C++/CLI .dll for use in

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.