Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: IIS5.1 IIS7 C++ Java C#4.0 .NET4 , +
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
Posted 3-Feb-13 3:42am

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 OriginalGriff 7,130
1 DamithSL 5,089
2 Maciej Los 4,866
3 Sergey Alexandrovich Kryukov 4,647
4 Kornfeld Eliyahu Peter 4,409


Advertise | Privacy | Mobile
Web02 | 2.8.141223.1 | Last Updated 3 Feb 2013
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100