Hi...
This is driving me crazy and I really hope I can get an answer soon 
Take a look at the piece of code below (I'm using .net 2.0):
try
{
double pointTime = XDate.DateTimeToXLDate(point.time);
double pointValue = Convert.ToDouble(point.value);
list.Add(pointTime, pointValue);
}
catch (Exception ex)
{
throw new Exception("Error in function SetFunction", ex);
}
When the application reaches:
double pointValue = Convert.ToDouble(point.value);
it should sometimes throw an exception because I sometimes put in a string with some text (I will add checking later).
The problem is that this code doesn't throw an exception but it just hangs!
When I added the try/catch block the exception was handled and the catch block
was reached so I decided to throw another exception just to test things and now the application HANGS HERE!!
The entire application currently runs on one thread, except for the use of some System.Windows.Forms.Timer timers.
If I try and throw an exception in the beginning of the app it works but somewhere something has to be set, which triggers such behavior :S and I don't know what
The problem is that I never before saw such behavior... I don't even know what to try...
Thanks for any kind of advice...
sašo
EDIT: I forgot to mention that this happens in a few other parts of the app.
And that the UI still remains reponsive and I can click around even call the same function with the correct parameters... as if this call locked on another thread... and I'm really not using threads.