R
Rolf Welskes
Hello,
I have the following problem:
Visual Studio 2003 , dotnet 1.1 (can not go to .net 2.0 !)
an application works fine.
At our customers sometimes there are exeptions, NullReferenceExceptions.
So we know: Reference-Variable is null.
But we do not know WHICH variable is null.
Furthermore we cannot debug it, because the problem is on a machine of our
customer normaly 1000 km away.
We have done the following:
the exception func is for example:
void func()
{
.....
}
We have changed this to
void func()
{
try
{
}
catch
{
//here check of all variables in this method
throw ApplicationException(.... here the info which variables are
null .....);
}
}
This has the problem, that there are cases, that we have this
null-reference exception, but ALL variables used in THIS function are NOT
null.
So this must be a null reference anywhere, which not directly throws an
exception.
The only way to find out it is to change the code so we get further
informations and send so our customers an update
with such implemented checking code. We cannot debug it because in our
system the problem does not exist.
Thank you for any help.
Rolf Welskes
I have the following problem:
Visual Studio 2003 , dotnet 1.1 (can not go to .net 2.0 !)
an application works fine.
At our customers sometimes there are exeptions, NullReferenceExceptions.
So we know: Reference-Variable is null.
But we do not know WHICH variable is null.
Furthermore we cannot debug it, because the problem is on a machine of our
customer normaly 1000 km away.
We have done the following:
the exception func is for example:
void func()
{
.....
}
We have changed this to
void func()
{
try
{
}
catch
{
//here check of all variables in this method
throw ApplicationException(.... here the info which variables are
null .....);
}
}
This has the problem, that there are cases, that we have this
null-reference exception, but ALL variables used in THIS function are NOT
null.
So this must be a null reference anywhere, which not directly throws an
exception.
The only way to find out it is to change the code so we get further
informations and send so our customers an update
with such implemented checking code. We cannot debug it because in our
system the problem does not exist.
Thank you for any help.
Rolf Welskes