User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the C# section within the Software Development category of DaniWeb, a massive community of 428,199 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,170 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our C# advertiser: Programming Forums
Views: 1074 | Replies: 11
Reply
Join Date: May 2008
Posts: 19
Reputation: chsarp_vijay is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
chsarp_vijay chsarp_vijay is offline Offline
Newbie Poster

Re: 'System.InvalidOperationException'

  #11  
May 16th, 2008
Hi macu,
I went to the control panel,Admin Tools, Performance. After that i strucked. Where i need to add the new counter and where i need to choose the process.

Regards,
Vijay



Originally Posted by macu View Post
The code looks fine to me, you're making doubly sure that the thread has been stopped. If you want to check you could go to Control Panel, Admin Tools, Performance. Add a new counter and choose Process, Thread Count and your project. When you run your project you'll see your thread pool thread count, when you click start this will go up by one as you've started a new thread and when you click exit you should see it go back down to where it was before you ran the app. Another test you could do is to write the current time to a file or something in your function and you'll see this stops when you exit.
Reply With Quote  
Join Date: Apr 2008
Posts: 9
Reputation: macu is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
macu macu is offline Offline
Newbie Poster

Re: 'System.InvalidOperationException'

  #12  
May 16th, 2008
Select the three default counters from underneath the graph and hit delete on each one to remove them. Click the + on the toolbar and you'll have a new dialog to add other counters. Choose Process in the top dropdown, then select thread count in the left listbox and then look for <your app name>.vshost in the right listbox and select it, then click Add.
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

DaniWeb C# Marketplace
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes

Similar Threads
Other Threads in the C# Forum

All times are GMT -4. The time now is 3:09 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC