| Author |
Message |
devdept
Joined: 19 Jan 2009 Posts: 13
|
Posted: Mon Jan 19, 2009 3:50 pm Post subject: .NET app crash only during profiling |
|
|
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 |
|
 |
Brian Donahue
Joined: 23 Aug 2004 Posts: 6344 Location: Red Gate Software
|
Posted: Mon Jan 19, 2009 7:29 pm Post subject: |
|
|
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. _________________ Brian Donahue
Technical Support
Red Gate Software Ltd.
44 (0)870 160 0037 ext 8521
US and CAN 1-866-RED GATE ext 8521 |
|
| Back to top |
|
 |
devdept
Joined: 19 Jan 2009 Posts: 13
|
Posted: Mon Jan 19, 2009 9:19 pm Post subject: |
|
|
Hi Brian,
No, it doesn't help and I really find it difficult to understand your explanation.
Thanks,
Alberto |
|
| Back to top |
|
 |
Brian Donahue
Joined: 23 Aug 2004 Posts: 6344 Location: Red Gate Software
|
Posted: Tue Jan 20, 2009 10:54 am Post subject: |
|
|
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. _________________ Brian Donahue
Technical Support
Red Gate Software Ltd.
44 (0)870 160 0037 ext 8521
US and CAN 1-866-RED GATE ext 8521 |
|
| Back to top |
|
 |
devdept
Joined: 19 Jan 2009 Posts: 13
|
Posted: Tue Jan 20, 2009 11:49 am Post subject: |
|
|
So unreferencing third party DLL may help?
Why it didn't happen on Vista Business x86?
Thanks,
Alberto |
|
| Back to top |
|
 |
devdept
Joined: 19 Jan 2009 Posts: 13
|
Posted: Wed Jan 21, 2009 10:49 pm Post subject: |
|
|
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 |
|
 |
|
|
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