Memory profiling for .NET developers
Moderators: Luke Jefferson, StephenC, AndrewH, melvyn.harbour, james.billings, Laura Morley, dene.boulton
So I have been trying to profile a large Silverlight app that profiles a service but when I profile it with Memory Profiler, it doesn't make the service call. So I decided to make a test app that just has a button then calls the service but when I call the service it stops working in the profiler.
All that is in the code is :
private void button1_Click(object sender, RoutedEventArgs e)
var srvc = new ServiceReference1.Service1Client();
label1.Content = "Done";
If I take out the line "var srvc = ..." then the label1.content will change when profiling. But if I leave it in, when the button is pressed during a profiling session then the content doesn't change.
It does work if I run in debug from VS or if I just open it in a browser.
Any ideas? This is holding me up from profiling a much larger app.
- Posts: 1
- Joined: Thu Jul 28, 2011 4:21 pm
- Location: United States
After pressing the button, does Internet Explorer display the 'Error on page' icon at the bottom right? And if so, what message appears when the icon is clicked?
(Silverlight exception details are normally written out to that location)
- Posts: 13
- Joined: Fri Jul 02, 2010 3:13 pm
Good suggestion! I suspect Visual Studio plumbs all of this debugging in for you when you create a Silverlight project using the Silverlight project template. Error information may not appear there if the app was not created using the VS template.
If nothing pops up there I can suggest attaching our debugger and see if the exception gets trapped.
- Posts: 6669
- Joined: Mon Aug 23, 2004 10:48 am
Return to ANTS Memory Profiler 7
Who is online
Users browsing this forum: No registered users and 0 guests