Hello,

I have some problems with the following plugin http://www.codeplex.com/sequenceviz. Every time i want to create a sequence diagram of a method i get this exception:
Object reference not set to an instance of an object.

System.NullReferenceException

at Reflector.Sequence.Settings.IgnoredMethodList() in E:\Code\LiveSequence\Src\trunk\LiveSequence.Reflector\Settings.cs:line 46
at Reflector.Sequence.Rules.IsValidMethod(String methodName) in E:\Code\LiveSequence\Src\trunk\LiveSequence.Reflector\Rules.cs:line 22
at Reflector.Sequence.Rules.IsValidCall(Object insOperand) in E:\Code\LiveSequence\Src\trunk\LiveSequence.Reflector\Rules.cs:line 66
at Reflector.Sequence.MethodData.AddNewCall(String typeName, IMethodDeclaration methodDefinition, Object callDefinition, String startMethod) in E:\Code\LiveSequence\Src\trunk\LiveSequence.Reflector\MethodData.cs:line 49
at Reflector.Sequence.InstructionDataPopulator.ParseMethodBody(ITypeReference typeReference, IMethodDeclaration method, String startMethod) in E:\Code\LiveSequence\Src\trunk\LiveSequence.Reflector\InstructionDataPopulator.cs:line 138
at Reflector.Sequence.InstructionDataPopulator.BuildGraphFromMethod(IMethodDeclaration method) in E:\Code\LiveSequence\Src\trunk\LiveSequence.Reflector\InstructionDataPopulator.cs:line 60
at Reflector.Sequence.DiagramViewerContainer.Translate() in E:\Code\LiveSequence\Src\trunk\LiveSequence.Reflector\DiagramViewerContainer.cs:line 85
at Reflector.Sequence.DiagramViewerContainer.OnParentChanged(EventArgs e) in E:\Code\LiveSequence\Src\trunk\LiveSequence.Reflector\DiagramViewerContainer.cs:line 50
at System.Windows.Forms.Control.AssignParent(Control value)
at System.Windows.Forms.Control.ControlCollection.Add(Control value)
at System.Windows.Forms.Control.ControlCollection.AddRange(Control[] controls)
at J.ý()
at J.ý(IWindow A_0)
at ¨.(String A_0)
at ¨.ý.ý(Boolean A_0)
at Reflector.Sequence.OpenSequencePackage.OnOpenSequenceClick(Object sender, EventArgs e) in E:\Code\LiveSequence\Src\trunk\LiveSequence.Reflector\OpenSequencePackage.cs:line 72
at x..ý(EventArgs A_0)
at x..()
at x..ý.(EventArgs A_0)
at System.Windows.Forms.MenuItem.MenuItemData.Execute()
at System.Windows.Forms.Command.Invoke()
at System.Windows.Forms.Command.DispatchID(Int32 id)
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 H.ý(Message& A_0)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


.NET Reflector 5.1.6.0
.NET Framework 2.0.50727.3603
Microsoft Windows NT 5.1.2600 Service Pack 3
Culture: en-US (de-DE)


[AssemblyCache]
"%SystemRoot%\Microsoft.net"
"%ProgramFiles%\Reference Assemblies"
"%ProgramFiles%\Microsoft.net"
"%ProgramFiles%\Microsoft Silverlight"

[AssemblyManager]
"D:\Tools\Reflector\SequenceViz\ZedGraph.dll"

[WindowManager]
X="2038"
Y="269"
Width="480"
Height="600"
Pane="1120"
Maximized="true"

Does anybody know what i am doing wrong?
rollerfreak2
0

Comments

4 comments

  • Clive Tong
    I'd ask the question on the codeplex forum associated with the application. The point where it is failing seems to be when it is trying to read configuration information from the .config file, in particular information associated with the IgnoredMethodList key.
    Clive Tong
    0
  • rollerfreak2
    But did you know a solution for the problem?
    rollerfreak2
    0
  • Clive Tong
    The stacktrace shows that the add-in is unable to get some information that it expects to find in the config file. One way to get it to work is to take appSettings information in the Reflector.exe.config that comes in the zip, and add that to the config file for the Reflector that you are using to host the add-in.

    So, to get it to work I did the following:

    (i) Copied the lines
    <appSettings>
    <add key="Pic2PlotPath" value="C:\Program Files\GnuWin32\bin\pic2plot.exe"/>
    <add key="OutputType" value="svg"/>
    <!--currently only svg format is supported-->
    <add key="IgnoredMethodList" value="get_|set_|add_|remove_|ToString"/>
    <add key="IgnoredTypeList" value="Console|String|Assert|Logging|Object|SR|SafeHandle"/>
    <add key="IgnoredNSList" value="System.Diagnostics|System.Security"/>
    </appSettings>
    into the config file for the reflector I was using (one of the Reflector Pro beta builds)

    (ii) Started reflector and loaded the Reflector.LiveSequence.dll assembly as an add-in.

    I could then go to System.Activator.CreateInstance<T> and use the context menu option to generate a sequence diagram.

    Does that help?
    Clive Tong
    0
  • rollerfreak2
    It works, thank you very much.
    rollerfreak2
    0

Add comment

Please sign in to leave a comment.