Red Gate forums :: View topic - .NET app crash only during profiling
Return to www.red-gate.com RSS Feed Available

Search  | Usergroups |  Profile |  Messages |  Log in  Register 
Go to product documentation
ANTS Profiler Previous Versions
ANTS Profiler Previous Versions forum

.NET app crash only during profiling

Search in ANTS Profiler Previous Versions forum
Post new topic   Reply to topic
Jump to:  
Author Message
devdept



Joined: 19 Jan 2009
Posts: 22

PostPosted: Mon Jan 19, 2009 3:50 pm    Post subject: .NET app crash only during profiling Reply with quote

Hi RG,

What should I do if my app crashes only during profiling with a random exception?

I am working on a .NET 3.5 project with AnyCPU platform setting on a Vista Business x64 PC.

Thanks,

Alberto
Back to top
View user's profile Send private message
Brian Donahue



Joined: 23 Aug 2004
Posts: 6674

PostPosted: Mon Jan 19, 2009 7:29 pm    Post subject: Reply with quote

Hi,

It's going to be difficult to give advice about random failures in the code even if it is ANTS Profiler's faul. Most commonly, there are problems with code that profuces and JITs its' own IL code because ANTS Profiler's IL rewriting is trying to do exactly the same thing. In this case, you can get method-level timings, but line-level timings would cause this type of crash.

Changing ANTS Profiler to only use method-level timings should hopefully work for you.
Back to top
View user's profile Send private message
devdept



Joined: 19 Jan 2009
Posts: 22

PostPosted: Mon Jan 19, 2009 9:19 pm    Post subject: Reply with quote

Hi Brian,


No, it doesn't help and I really find it difficult to understand your explanation.


Thanks,

Alberto
Back to top
View user's profile Send private message
Brian Donahue



Joined: 23 Aug 2004
Posts: 6674

PostPosted: Tue Jan 20, 2009 10:54 am    Post subject: Reply with quote

I'm sorry you didn't understand my post. All I am saying is basically there are some applications that will work when you profile using the "method-level timings" setting and not "line-level timings" because ANTS Profiler injects code into the application while it is running. If your application does the same thing, then it may fail. Even if you are just using third-party dlls that do this. And I'm afraid I don't know any way to detect if this is happening or know what you can do about it. Except not to use line-level timings only in the ANTS Profiler settings.
Back to top
View user's profile Send private message
devdept



Joined: 19 Jan 2009
Posts: 22

PostPosted: Tue Jan 20, 2009 11:49 am    Post subject: Reply with quote

So unreferencing third party DLL may help?

Why it didn't happen on Vista Business x86?

Thanks,

Alberto
Back to top
View user's profile Send private message
devdept



Joined: 19 Jan 2009
Posts: 22

PostPosted: Wed Jan 21, 2009 10:49 pm    Post subject: Reply with quote

Hi Brian,


After fixing a few things the problem is not so frequent as before. I'll keep you updated.


Thanks,

Alberto
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic All times are GMT + 1 Hour
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group