Issue
I was trying to run Rhino.Inside inside Java 8 using jni4net
as the bootstrapper. It didn’t work with the following code:
Core = new RhinoCore(new string[] { }, WindowStyle.Normal);
after ~3 seconds of execution, an exception pop up: InteropServices.COMException: 'Error HRESULT E_FAIL has been returned from a call to a COM component.' Error code (0x80004005).
However, Rhino.Inside runs without window by:
Core = new RhinoCore(new string[] { }, WindowStyle.NoWindow);
RhinoCommon is soon usable, but this defys the original intent of using Rhino.Inside.
Environment
- I am using the latest 7.3.
- Rhino Inside Revit runs normally.
- JRE 8 is 64-bit
Question
I can use interprocess communication but I found Rhino.Inside might be more interesting.
Any idea on this issue or how to debug such a situaiton?
Code
Java code & binary: eclipse-workspace.zip (333.9 KB). Run rhinoInsideJava.bat. Make sure you have 64-biyt JRE 8 in PATH
.
C# source for reference: McLivelink.zip (4.9 KB)