E3 COM library and E3 already running
I am experiencing a very strange problem... This is the scenario:
1) I launch E3 and open project file "A"
2) I execute a .NET app I am developing (using E3 COM interface) and I open project file "B"
This is the C# code:
e3App = Activator.CreateInstance(Type.GetTypeFromProgID("CT.Application")) as IApplicationInterface;
if (e3App != null)
e3Job = e3App.CreateJobObject() as IJobInterface;
jobId = e3Job.Open(f);
if (jobId == 0) throw new Exception("Error while opening " + f);
When I execute this line:
int devicesCount = e3Job.GetAllDeviceIds(ref lstDevices);
I get the devices of project "A"!! The one I opened earlier via E3 user interface...
What I am doing wrong?
Thanks a lot