@Yoshy wrote:
I'm trying to Stream Geometry Objects from Rhino to another Program using NamedPipeline and Binaryformatter.
The send side of the stream seems to work, i can stream RhinoGeometry,Brep or Mesh, from one Rhino Instanze to another, but Deserialization outside of Rhino Environment won't work proberly.What I need is continously updated NurbsGeometry for interaktiv display purposes.
What works is streaming all RhinoGeometry Objects that are structures like Point3d, Line, Circle.Here is some Code:
using (NamedPipeClientStream pipeClient = new NamedPipeClientStream(".", "testpipe", PipeDirection.In)) { pipeClient.Connect(); using (StreamReader sr = new StreamReader(pipeClient)) { Object inf; BinaryFormatter bf = new BinaryFormatter(); try { inf = bf.Deserialize(pipeClient); Console.WriteLine("Received from server: {0}", inf.GetType().ToString()); if(inf.GetType()==new Punkt().GetType()) { Punkt pt = (inf as Punkt); Console.WriteLine("x: {0} y: {1} z: {2}", pt.X, pt.Y, pt.Z); } } catch (IOException e) { Console.WriteLine("ERROR: {0}", e.Message); } } pipeClient.Close(); }
The Error I get : "System.Reflection.TargetInvocationException"
from what I understand is it an missing module, I used dependencyWalker finding the missin dlls
when I add every missing dll, I get an Crash whithout ErrormessageAny suggestions?
Thanks Yoshy
Posts: 7
Participants: 3