1

Resolved

Store Items in Database

description

Here is a bug report on this topic:
 
If I replace some code in loadGraph to not load from Stream I run into a crash on line 32 in EdgeRouteJob.cs:
 
 
 
var srcPort = edge.Src.GetShapePort(points[1]);
 
 
 
 
DemoViewModel.cs:
 
    private void loadGraph(Stream stream)
    {
        // Create instance of DrawingGraph
        var graph = new DrawingGraph("Label");
 
        // Define your graph. This code can be based on information from DB
        graph.AddEdge("A", "B");
        graph.AddEdge("B", "C");
        graph.AddEdge("A", "C");
 
        var engine = new GraphVizLayoutBatch();
        engine.Execute(graph);
        Graph = graph;
 
        var s = new MemoryStream();
        Graph.WriteToFile(s);
        var data = s.ToArray();
        var str = Encoding.UTF8.GetString(data, 0, data.Length);
        GraphDefinition = str;
    }
 
-Jesper

comments

bog1978 wrote Mar 21, 2011 at 7:42 PM

Fixed in revision #62975



** Closed by bog1978 21.03.2011 12:40

bog1978 wrote Mar 21, 2011 at 7:42 PM

wrote Mar 21, 2011 at 7:43 PM

wrote Feb 13, 2013 at 11:13 PM

wrote May 16, 2013 at 3:04 AM

wrote May 16, 2013 at 3:04 AM

wrote Jun 14, 2013 at 7:45 AM