QUOTE(papuccino1 @ 2 Jul, 2009 - 07:03 PM)

I think he doesn't mean try/catch at all. I think what he's trying to say is that:
QUOTE
This code throws this exception when I run it. How can I fix this exception?
or
QUOTE
This code is not functioning as it should, but doesn't throw any exception (the program still runs)
Izza would you mind posting all the code related to this:
csharp
for (int i = 0; i < hi; i++)
weight[1][0][i] = paramDataReader.ReadElementContentAsDouble();
the exception isn't usual i think. it stop the program but when i continue debugging it run the point of code where it catch exception and go to the next code.
so i try this :
CODE
for (int i = 0; i < hi; i++)
{
try
{
weight[1][0][i] = paramDataReader.ReadElementContentAsDouble();
}
catch { weight[1][0][i] = paramDataReader.ReadElementContentAsDouble(); }
}
and it works.