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

  • Home
  • SEARCH
  • 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 9248873
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T10:03:11+00:00 2026-06-18T10:03:11+00:00

I needed a Java application to call unmanaged C++. I copied MSVCR90.dll manually from

  • 0

I needed a Java application to call unmanaged C++. I copied MSVCR90.dll manually from Visual Studio 2008 redist path to the vmware’s Windows Server Datacenter.

This is the error I get:

A fatal error has been detected by the Java Runtime Environment:

  EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x73b4ae7a, pid=1108, tid=2272

 JRE version: 6.0_38-b05
 Java VM: Java HotSpot(TM) Client VM (20.13-b02 mixed mode, sharing windows-x86 )
 Problematic frame:
 C  [MSVCR90.dll+0x3ae7a]

 An error report file with more information is saved as:
 ...\hs_err_pid1108.log

 If you would like to submit a bug report, please visit:
 http://java.sun.com/webapps/bugreport/crash.jsp
 The crash happened outside the Java Virtual Machine in native code.
 See problematic frame for where to report the bug.

This is the C++ code:

 #include "stdafx.h"

 #include <stdio.h>

 #include "CCCheckString.h"

 #include <vector>

 #include <String>

 using namespace std;
 #include "jobHandler.h"

JNIEXPORT jbolean JNICALL Java_CCCheckString_Login
  (JNIEnv *env, jobject object, jstring host, jstring UserName, jstring Domain, jstring Password)
{
    bool result;

    jobHandler *handler = new jobHandler(); 

     const char *hostStr = (env)->GetStringUTFChars(host, NULL);
     string hostS(hostStr);
     const char *UserNameStr = (env)->GetStringUTFChars(UserName, NULL);
     string UserNameS(UserNameStr);
     const char *DomainStr = (env)->GetStringUTFChars(Domain, NULL);
     string DomainS(DomainStr);
     const char *PasswordStr = (env)->GetStringUTFChars(Password, NULL);
     string PasswordS(PasswordStr); 

         //if comment this line everthing is okey 
     **result = handler->Login(hostS,UserNameS,DomainS,PasswordS);**

    (env)->ReleaseStringUTFChars(host, NULL);
    (env)->ReleaseStringUTFChars(UserName, NULL);
    (env)->ReleaseStringUTFChars(Domain, NULL);
    (env)->ReleaseStringUTFChars(Password, NULL);


    delete handler;

    return result;

}

Below is the processing code in Java:

CCCheckString ccCheckString = new CCCheckString();

 result=ccCheckString.Login("xxx", "xxx", "xx", "xxx");

How can i fix the error?

  • 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-06-18T10:03:13+00:00Added an answer on June 18, 2026 at 10:03 am

    I solved.

    Problem is that Login() accepts std::string but we cannot send it

    We reorganize our Login() and it must take const char []

    Ex:

    bool ClassName::Login(std::string host,std::string userName,std::string userDomain,std::string userPassword)
    { //Orginal Code Here ....}
    
    bool ClassName::Login(const char host[],const char userName[],const char userDomain[],const char userPassword[])
    {
    std::string strHost(host);
    std::string strUserName(userName);
    std::string strUserDomain(userDomain);
    std::string strUserPassword(userPassword);
    return Login(strHost,strUserName,strUserDomain,strUserPassword);
    
    }
    

    Everything is fine.

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

Sidebar

Related Questions

If I had a java application that needed specific environment variables to be set,
I'm developing my first java application using Eclipse. I've recently needed to adjust the
I'm writing a .NET application that will make an RPC call to a Java
I need to generate certification chain in my java application becouse its needed when
I'm using MPlayer in my java application. According to its doc, it's needed that
I work on a UI java application composed from: top header left menu header
I want to use one or many script languages in my Java application. From
I have a Java application where the domain layer is decoupled from the UI
The question us also related to linux but solution is needed for Java. So
I had java jdk 1.6 installed, and today installed jdk 1.7 becaused needed to

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.