Error when trying to clicking 'Show Source View'
IBrown
Posts: 7
Hi,
I get the following error when clicking 'Show Source View' on a method. The method is shown in bold - so Performance Profiler believes that there is source to show. The code is in an IIS based ASP.net application.
Any suggestions? Thanks in advance.
The error message is:
I get the following error when clicking 'Show Source View' on a method. The method is shown in bold - so Performance Profiler believes that there is source to show. The code is in an IIS based ASP.net application.
Any suggestions? Thanks in advance.
The error message is:
Object reference not set to an instance of an object. System.NullReferenceException at DevExpress.XtraBars.Docking.DockPanel.Show() at aq.p() at aq.v(Object , ItemClickEventArgs ) at DevExpress.XtraBars.BarItem.OnClick(BarItemLink link) at DevExpress.XtraBars.BarBaseButtonItem.OnClick(BarItemLink link) at DevExpress.XtraBars.BarItemLink.OnLinkClick() at DevExpress.XtraBars.BarItemLink.OnLinkAction(BarLinkAction action, Object actionArgs) at DevExpress.XtraBars.BarButtonItemLink.OnLinkAction(BarLinkAction action, Object actionArgs) at DevExpress.XtraBars.BarItemLink.OnLinkActionCore(BarLinkAction action, Object actionArgs) at DevExpress.XtraBars.ViewInfo.BarSelectionInfo.ClickLink(BarItemLink link) at DevExpress.XtraBars.ViewInfo.BarSelectionInfo.UnPressLink(BarItemLink link) at DevExpress.XtraBars.Controls.CustomLinksControl.OnMouseUp(MouseEventArgs e) at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks) at System.Windows.Forms.Control.WndProc(Message& m) 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)
Comments
just to quickly check - are you running the most recent version of ANTS Profiler?
Cheers,
Stephen
Thanks for the quick reply.
So when you first started profiling and then got some data there was never a source code window there by default? Ever?
Because that's the state that is shown whenever the profiler is opened again for a totally new profiling session. Generally there shouldn't even be a real need to use that menu item really unless having manually closed the source code window which generally doesn't happen because the line level timings are generally of most interest.
It's very odd and any details you could provide would be helpful.
Stephen
I don't know whether it helps, but I'm running XP, fully patched, with a dual monitor system.
Closing down ANTS and then starting it back up again should automatically display the code window again no matter what its state in the previous profiling session.
If it's now never appearing between totally new sessions of having closed it down and started it up again that's a really strange bug. It appears to involve the 3rd party DevExpress control that's used for the window looking at the stack trace.
If it's the case that the code window doesn't show at all even when having restarted the profiler, then what happens when you start profiling and haven't yet displayed data of any type in the call tree for example - does clicking on the show source code option still then throw the exception with no profiling data visible?
I have one other possible solution to try but let me know how that goes first.
Stephen
OK - I've tried that. I still don't get the source window. However, when I click on the 'Show Source View' I now no longer get an error dialog - but nothing happens visually.
My screen shows the performance counters panel and the 'method' panel containing the tree view.
Incidentally, I am pretty impressed with the software as a whole.
Now that the error has stopped - try the reset docking windows option again and then show source code view. Worth a punt. Apart from V5 i'm out of ideas.
We do have an early access program now for V6. Here's the forum where you can get the build.
http://www.red-gate.com/messageboard/vi ... .php?f=110
It will install along side V5. I would imagine that the code view would be available when you install it. I just wouldn't go about closing it!
Stephen
I'm downloading the EAP build of v6 and will try it later.
I have had a look at the methods grid and call graph - both look useful. The 'Reset Docking Windows' option did not have the desired effect.
Thanks for your help,
Ian.
Amongst other things we have planned for V6, the current build comes with the ability to analyze File I/O events and SQL events on a local instance of SQL Server if you are interested. There's a Sampling mode which is super quick if you don't need line level profiling.
You can 'switch' out the performance graph using the drop down in the top left corner and select the other graphs to do other analysis. If you have any colleagues etc... who would be interested then send on the link.
Any feedback on these features would be really appreciated.
Thanks,
Stephen
I tried the eap of v6 - making sure that I didn't turn off the code view window. The code view window has reappeared in v5.2.
Thanks for your help.
I spoke to one of the developers about this and he thinks that deleting the DevExpress keys from the ANTS Profiler registry key would probably work.
We can't replicate this issue so no promises but if anyone else is reading this and has the same problem then please try it and let me know how you get on.
S