D
Doug Thews
Agreed. It's probably better to just use "true" instead of a variable, and
then catch the Interrupted exception (if you want a thread that runs
continuously and only quits when the app quits - as I was suggesting):
try
{
while( true )
{
// perform whatever
}
}
catch (ThreadInterruptedException)
{
// Perform cleanup - then return
return;
}
--
Doug Thews
Director, Customer Solutions
D&D Consulting Services
----------------
Visit my Tech Blog at:
http://www.ddconsult.com/blogs/illuminati/
then catch the Interrupted exception (if you want a thread that runs
continuously and only quits when the app quits - as I was suggesting):
try
{
while( true )
{
// perform whatever
}
}
catch (ThreadInterruptedException)
{
// Perform cleanup - then return
return;
}
--
Doug Thews
Director, Customer Solutions
D&D Consulting Services
----------------
Visit my Tech Blog at:
http://www.ddconsult.com/blogs/illuminati/