# Thursday, June 09, 2005

   Diagnosys: In the background, ngraphviz generates a temporary dot file for each graph that gets rendered and shreds it afterwards. If you are running Ngraphviz from a folder that does not have write support, you get something like the exception below.

   Workaround: Do not run reflector from a share!

Access to the path "\\xxxxxxxx\a26d8897-1b11-4f40-8d50-301cc6503ba2.dot" is denied.

System.UnauthorizedAccessException

  at System.IO.__Error.WinIOError(Int32 errorCode, String str)
  at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share,
Int32 bufferSize, Boolean useAsync, String msgPath, Boolean bFromProxy)
  at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share,
Int32 bufferSize)
  at System.IO.StreamWriter.CreateFile(String path, Boolean append)
  at System.IO.StreamWriter..ctor(String path, Boolean append, Encoding encoding, Int32 bufferSize)
  at System.IO.StreamWriter..ctor(String path)
  at NGraphviz.Helpers.Dot.Run(GraphvizImageType imageType, String dotCode, String outputFileName)
  at QuickGraph.Algorithms.Graphviz.GraphvizAlgorithm.Write(String outputFileName)
  at Reflector.Graph.Graphs.InstructionGraphRenderer.Render(String fileName)
  at Reflector.Graph.IlGraphControl.Translate()
  at Reflector.Framework.InternetExplorerControl.OnParentChanged(EventArgs e)
  at System.Windows.Forms.Control.AssignParent(Control value)
  at System.Windows.Forms.ControlCollection.Add(Control value)
  at _134._1(IWindow )
  at _121._1(String )
  at _4.set_Visible(Boolean value)
  at Reflector.Framework.PackageBase.commandBar_Click(Object sender, EventArgs args)
  at _78.OnClick(EventArgs e)
  at _78.PerformClick()
  at _1.OnClick(EventArgs e)
  at System.Windows.Forms.MenuItemData.Execute()
  at System.Windows.Forms.Command.Invoke()
  at System.Windows.Forms.Control.WmCommand(Message& m)
  at System.Windows.Forms.Control.WndProc(Message& m)
  at System.Windows.Forms.TreeView .WndProc(Message& m)
  at _2.WndProc(Message& message)
  at System.Windows.Forms.ControlNativeWindow.OnMessage(Message& m)
  at System.Windows.Forms.ControlNativeWindow.WndProc(Message& m)
  at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

 

posted on Thursday, June 09, 2005 9:11:15 AM (Pacific Daylight Time, UTC-07:00)  #    Comments [1]
Tracked by:
"Buy phentermine." (Phentermine.) [Trackback]
"tikka rifles" (online) [Trackback]
Wednesday, August 03, 2005 2:42:40 AM (Pacific Daylight Time, UTC-07:00)
The NGraphViz binary supports a Dot() method, which works well, but I do not need layout for now, only file format conversion. So it looks like I need my own NGraphViz. Do you make its source code available? It would really save me some work.

MbUnit and all other QuickGraph apps I've found only appear to include binaries.
Comments are closed.