Hello people,
I've started a project sometime ago and now its almost finished... "almost" because it was developed under vista and seven, but the final plataform is Windows XP
Today I tested it for the first time in the computer it will receive the program and for my surprise it didn't worked.
After some time crushing the head against the wall I realised the problem, when I call this specific and yet most important part of the code about the COM with the MACH4 the program was'nt answering:
Mach = (Mach4.IMach4)Marshal.GetActiveObject("Mach4.Document");
Script = (Mach4.IMyScriptObject)Mach.GetScriptDispatch();
Actually, it was... it was saying that I could not handle an HResult from this COM, but I can't even start to understand why, for real, the program/plugin works automatizing the Mach3 (entirely constructed in c#), but when I try to start a connection with the program so I can send the Script.Code( ) or any other procedure/parametre it get stuck in this ******Mach = (Mach4.IMach4)Marshal.GetActiveObject("Mach4.Document");********
Have anyone ever passed by this kind of problem? I just can't realize why this would happen. I even tried to compile the program inside the XP but it didn't worked as well.
Thanks in advance
Lucas S.Coppio