Red Gate forums :: View topic - Threading problems
Return to www.red-gate.com RSS Feed Available

Search  | Usergroups |  Profile |  Messages |  Log in  Register 
Go to product documentation
SmartAssembly 6
SmartAssembly 6 forum

Threading problems

Search in SmartAssembly 6 forum
Post new topic   Reply to topic
Jump to:  
Author Message
garethhayter



Joined: 20 Apr 2010
Posts: 32

PostPosted: Fri May 06, 2011 9:36 am    Post subject: Threading problems Reply with quote

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 Wink

Thanks,
Gareth.
_________________
Gareth Hayter


Last edited by garethhayter on Fri May 06, 2011 9:53 am; edited 1 time in total
Back to top
View user's profile Send private message
garethhayter



Joined: 20 Apr 2010
Posts: 32

PostPosted: Fri May 06, 2011 9:53 am    Post subject: Reply with quote

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
Back to top
View user's profile Send private message
Brian Donahue



Joined: 23 Aug 2004
Posts: 6643

PostPosted: Fri May 06, 2011 10:35 am    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message
garethhayter



Joined: 20 Apr 2010
Posts: 32

PostPosted: Fri May 06, 2011 12:10 pm    Post subject: Reply with quote

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
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