The Source for Java Technology Collaboration

Home » java.net Forums » Communications » Mobicents Contributors

Thread: Calling C# dll via VC++ from Java

Welcome, Guest Help
Login Login
Guest Settings Guest Settings
Reply to this Thread Reply to this Thread Search Forum Search Forum Back to Thread List Back to Thread List

Permlink Replies: 1 - Last Post: Jun 24, 2009 10:07 AM by: chrishurst Threads: [ Previous | Next ]
santosavio

Posts: 1
Calling C# dll via VC++ from Java
Posted: Jun 23, 2009 3:32 AM
  Click to reply to this thread Reply

Hai

I've been under a great prob.. since 2 days...

Issue is :
I've built a VC#dll which is accessed from VC++(win32 console dll app)..
I've created a Java program to access the dll of the said C++ program...
I was successful in getting it worked ...
Problem comes when I run the same application in a different system where all the
needed visual studio files are installed...

From java i can access the C++ dll but the error comes in accessing C# dll(through the C++ program)...

NB: error accurs only when it is run on a different machine...
Error is:

# An unexpected error has been detected by HotSpot Virtual Machine:
#
# Internal Error (0xe06d7363), pid=4024, tid=4028
#
# Java VM: Java HotSpot(TM) Client VM (1.5.0_09-b01 mixed mode, sharing)
# Problematic frame:
# C [kernel32.dll+0x1eb33]
#
# An error report file with more information is saved as hs_err_pid4024.log
#
# If you would like to submit a bug report, please visit:
# http://java.sun.com/webapps/bugreport/crash.jsp

i've done "googling" with this error... but no one has come up with some satisfactory answer...
Pls do help.....

Thanks in advance ...

Santo

chrishurst

Posts: 5
Re: Calling C# dll via VC++ from Java
Posted: Jun 24, 2009 10:07 AM   in response to: santosavio
  Click to reply to this thread Reply

Well obviously attach the log file ;-)

.. but failing that how did you confirm all the resources were there Depends.exe on the DLL or better run direct from C++ app.

My favourite mishap is to compile with debug with VC and then get can't find DLL errors on the next machine I try that doesn't have VC only and only has the release version of the libs I require.




 XML java.net RSS