E
eBob.com
The dirt simple function below hangs up the thread it is executing on.
Private Function PurifyTelnum(ByVal telnum As String) As String
' drop trailing " "
Dim nbspIndex As Integer = telnum.Length - 5 ' offset to " "
if it's at the end of the string
If telnum.Substring(nbspIndex, 6) = " " Then
Return telnum.Substring(0, telnum.Length - 6)
End If
' drop imbedded " <br>" and then get rid of redundant blanks
Return CleanUpIdiomas(telnum.Replace(" <br>", " "))
Return telnum
End Function
In single-stepping thru the code the last statement highlighted is
If telnum.Substring(nbspIndex, 6) = " " Then
I see no indication that it gets to the Return statement below it.
When I do a "Break All" and try to look at the thread I get a pop-up saying
that there is no source code corresponding to the location (but it does not
say what source code it is looking for).
TaskManager indicates that the problem is not a CPU loop.
This is driving me nuts! I'll be grateful if one of you guys spots the
problem.
Thanks, Bob
Private Function PurifyTelnum(ByVal telnum As String) As String
' drop trailing " "
Dim nbspIndex As Integer = telnum.Length - 5 ' offset to " "
if it's at the end of the string
If telnum.Substring(nbspIndex, 6) = " " Then
Return telnum.Substring(0, telnum.Length - 6)
End If
' drop imbedded " <br>" and then get rid of redundant blanks
Return CleanUpIdiomas(telnum.Replace(" <br>", " "))
Return telnum
End Function
In single-stepping thru the code the last statement highlighted is
If telnum.Substring(nbspIndex, 6) = " " Then
I see no indication that it gets to the Return statement below it.
When I do a "Break All" and try to look at the thread I get a pop-up saying
that there is no source code corresponding to the location (but it does not
say what source code it is looking for).
TaskManager indicates that the problem is not a CPU loop.
This is driving me nuts! I'll be grateful if one of you guys spots the
problem.
Thanks, Bob