edge
edge copied to clipboard
Using COM is possible in 0.10.33 but not in 6.9.1 and also not in 4.6.2
Hi,
I tried getting attached code to work in a newer version of nodejs and it seems to fail for a reason I am unable to find out.
It fails with an 'Illegal characters in path.' problem but the real cause might be something else. I don't know. It works without problems in version 0.10.33 of node.
Source code below:
$ node hello-edge.js Load edge native library from: g:\products\postnl-solution\poc-scale\node_modules\edge\lib\native\win32\ia32\4.1.1\edge_nativeclr edge::init V8SynchronizationContext::Initialize V8SynchronizationContext::Unref ClrFunc::Initialize MethodInfo wrapper ClrFunc::Initialize Func<object,Task
Bas@BASELZINGA /G/products/postnl-solution/poc-scale (master)
// Overview of edge.js: http://tjanczuk.github.com/edge
var edge = require('edge');
var helloWorld = edge.func({
source:'add7.csx',
references: ['System.Data.dll', 'Interop.MTLibrary.dll', 'Interop.MTScaleConnectionActiveProj1.dll', 'Interop.MTScaleConnectionServer.dll']});
var sendImpl = function (error, result) {
console.log(result);
console.log(error);
};
helloWorld('hoi', sendImpl);
and:
using System;
using System.Data;
using System.Threading.Tasks;
using MTScaleConnectionActiveProj1;
public class Startup
{
public MTScaleConnectionActiveXClass axMTScaleConnectionActiveX1;
private Func<object, Task<object>> SendImpl { get; set; }
public async Task<object> Invoke(string sendImpl)
{
axMTScaleConnectionActiveX1 = new MTScaleConnectionActiveXClass();
axMTScaleConnectionActiveX1.MTDevice = 1;
axMTScaleConnectionActiveX1.Active = true;
System.Console.WriteLine(sendImpl);
return sendImpl;
}
}
Looks like I am facing the same issue
Please help with this, I have spent several hours trying to understand what I am doing wrong. Seems like something trivial. Thanks
Maybe include full paths to the dlls and have the paths use / instead of \ . other than that I got no clue.
Anyone got a solution for this Illegal characters in path exception
issue? We are facing the same problem and have no clue how to fix it
Same here :(