Click here to Skip to main content
11,578,954 members (65,269 online)
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 2:42am

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

  Print Answers RSS
0 Peter Leow 135
1 Frankie-C 115
2 OriginalGriff 113
3 Richard MacCutchan 85
4 Afzaal Ahmad Zeeshan 85
0 OriginalGriff 933
1 Sergey Alexandrovich Kryukov 740
2 Abhinav S 573
3 F-ES Sitecore 420
4 Dave Kreskowiak 419


Advertise | Privacy | Mobile
Web04 | 2.8.150603.1 | Last Updated 3 Feb 2013
Copyright © CodeProject, 1999-2015
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