Hi, I have a server with 3 threads and a threadpool for recieved data processing. The only locks (reader and writer) Im using are for client connection lists. Sometimes the main form freezes for a second and I cannot find the problem. The form doesnt do any hard work, thats for different threads. I wanted to ask whather there is not any way how to track this "freezing" down? Any help is very appreciated,thanks!
+2
A:
You could run a profiler on your app to try and help isolate the problem.
I've been playing around with EQATEC Profiler, it looks like a really good utility and is completely free. It shows you some really useful stats like the time spent in each method. If you are armed with this information it should go a long way to tracking down your problem.
I haven't tried it on a multi-threaded app yet, so I'm not sure how it handles different threads. But it's worth a shot as (like I said) it's completely free (BSD license) and easy to use.
ParmesanCodice
2009-10-19 07:39:09
Thank you that sounds really great!
Petr
2009-10-19 07:41:51
No problem. There are a couple of profilers available. This is the best(/only) free one I've found so far...
ParmesanCodice
2009-10-19 07:47:11
A:
Is application freezing when you are running it in the Debug mode? I have experienced a similar behavior myself and when testing outside VS environment (Debug and Release builds) the "hiccups" were gone.
Audrius
2009-10-19 08:00:57