16,022,364 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View .NET questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by tnd2000 (Top 7 by date)
tnd2000
27-Apr-11 13:07pm
View
I didn't vote for your answer because I think the OP did not want to create 2 threads. He just wanted PauseCheck interrupted when timer ticks.
tnd2000
27-Apr-11 12:34pm
View
Is this a program requirement or did you want to do it to debug some issues?
Exception can only be caught one time only. Outer exception will only catch if inner exception doesn't handle it, or if another exception occurs while it's being handled.
try
{
try
{
dosomething
}
catch
{
innerchach;
}
catch
{
this code will only execute if an exception is thrown in inner catch
}
}
tnd2000
27-Apr-11 12:26pm
View
Debugger break when exception is thrown works like a break point. It just breaks execution, it does not kill the error handling codes.
tnd2000
27-Apr-11 12:13pm
View
I didn't vote, but I think the OP wanted to know how Monitor works. Not how different threads can communicate via events or sockets.
tnd2000
27-Apr-11 12:08pm
View
That's what TryEnter(fork, locked) does. When lock is false, it means another thread has locked/entered.
Maybe what you wanted is for the thread to be blocked? If so, use Monitor.Enter instead.
If you found problems with the code, you should post it in the discussion. http://rosettacode.org/wiki/Talk:Dining_philosophers
tnd2000
27-Apr-11 11:59am
View
Monitor.TryEnter has many overloads, one of them takes bool as a second parameter.
tnd2000
21-Apr-11 12:33pm
View
I simply provided a means for it to calculated and gave an example. The OP said there are straightlines and curves and every curve had an equation to go with it. And yes it does work with a circle or whatever else as long as there is a mathmatical equation for it.
I am not going to discuss what is considered calculus.
Show More