Click here to Skip to main content

hemigueti asked:

Open original thread
I met a big problem with an application that needs to initialize a java virtua machine. Let me explain: I have developed a wcf web service in C # and the framework 4.0 and in which I initialize a java virtual machine in order to communicate with java code with p/invoke call from a native c++ dll. When I use the ServiceHost object (from the framework.net) to host the service it works very well (the JVM is initialized here). But when I try to host my wcf service web in IIS5.1 or IIS7, the application fails and exit with any message. So i have turned on the debugging in visual studio at IIS Express,check allow unsafe code and i get the following exception: "Could not reserve enough space for object heap" which means that the java virtual machine can not be expressed initialized.
 
The application architecture is like this: code + c # wcf call a function with-> jniinterface and it is a c + + dll (p / invoke) ---> java library
 
could someone help me
 
thank you
Tags: C++, Java, C#4.0, .NET4, IIS5.1, IIS7, virtual-machine

Preview



When answering a question please:
  1. Read the question carefully.
  2. Understand that English isn't everyone's first language so be lenient of bad spelling and grammar.
  3. If a question is poorly phrased then either ask for clarification, ignore it, or edit the question and fix the problem. Insults are not welcome.
Let's work to help developers, not make them feel stupid.
Please note that all posts will be submitted under the The Code Project Open License (CPOL).



Advertise | Privacy | Mobile
Web01 | 2.8.140415.2 | Last Updated 26 Mar 2009
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Use
Layout: fixed | fluid