Threading problems

.NET obfuscator and automated error reporting

Moderators: Luke Jefferson, melvyn.harbour, dom.smith

Threading problems

Postby garethhayter » Fri May 06, 2011 9:36 am

A few users have reported my app semi-hanging while performing a certain operation. What I mean by semi-hanging is that the app remains responsive to UI interaction, but an operation on another thread never seems to return.

This indicates a threading issue and it is extremely difficult to reproduce at will.

What would be great would be to allow the user (or my app internally) to grab a stacktrace of all threads or something that will allow me to narrow down where the problem is occurring - on which thread, and what is blocking.

I know that threading issues are notorious, but can you suggest any way for me to troubleshoot this. I'd love to put a big button for users experiencing this problem to press, which will send this useful info to me.

I know this is a very broad question, and not actually related to SmartAssembly, but I'd appreciate any pointers ;-)

Thanks,
Gareth.
Last edited by garethhayter on Fri May 06, 2011 9:53 am, edited 1 time in total.
Gareth Hayter
garethhayter
 
Posts: 32
Joined: Tue Apr 20, 2010 7:08 am

Postby garethhayter » Fri May 06, 2011 9:53 am

This question http://stackoverflow.com/questions/2724045/can-i-get-the-stack-traces-of-all-threads-in-my-c-app led me to look at the Managed Stack Explorer http://mse.codeplex.com/

The Managed Stack Explorer sounds perfect, but doesn't work with .Net 4.0.

So, still no solution. All I really need is to get the stack-traces of all running threads.
Gareth Hayter
garethhayter
 
Posts: 32
Joined: Tue Apr 20, 2010 7:08 am

Postby Brian Donahue » Fri May 06, 2011 10:35 am

Hi Gareth,

You are welcome to use our internal support tool, Red Flag, to dump the stacks. It works in a similar way to MSE, except it doesn't automatically dump the stacks -- you have to do it from the "Actions" menu. But I have got .NET v4 support in it.
Brian Donahue
 
Posts: 6669
Joined: Mon Aug 23, 2004 10:48 am

Postby garethhayter » Fri May 06, 2011 12:10 pm

Hi Brian

That's very kind of you. Thank-you very much. I'll give it a go and see what I can uncover.
Gareth Hayter
garethhayter
 
Posts: 32
Joined: Tue Apr 20, 2010 7:08 am


Return to SmartAssembly 6

Who is online

Users browsing this forum: No registered users and 0 guests