T
Thomas Hall
I've written a class to monitor and log unanswered incoming voice calls
on a Pocket PC 2003 Phone Edition (WinCE 4.2). I'm using Alex
Feinman's Tapi wrapper (v.1.6). We have been field-testing the new
class this past week and randomly we are seeing a TapiException
(OpenNETCF.Tapi.TapiException) which is trashing the EXE process. This
is confusing since I am catching this error type in my handler.
For example:
Private Sub m_objCall_CallInfo(ByVal [Call] As OpenNETCF.Tapi.Call,
_
ByVal infoState As OpenNETCF.Tapi.LINECALLINFOSTATE, _
ByVal info As OpenNETCF.Tapi.LINECALLINFO) Handles
m_objCall.CallInfo
Try
If m_bGetCallInfo AndAlso [Call] Is m_objCall Then
m_bGetCallInfo = False
If m_objCall.Info.dwOrigin = LINECALLORIGIN.INBOUND
Then
Dim strCallerID As String
If m_objCall.Info.CallerID.Trim <> String.Empty
Then
strCallerID = m_objCall.Info.CallerID.Trim
Else
strCallerID = "Unknown"
End If
m_strLastCallerID = strCallerID
End If
If m_objCall.Info.dwOrigin = LINECALLORIGIN.OUTBOUND
Then
Dim strCalledID As String
If m_objCall.Info.CalledID.Trim <> String.Empty
Then
strCalledID = m_objCall.Info.CalledID.Trim
Else
strCalledID = "Unknown"
End If
m_strLastCalledID = strCalledID
End If
End If
Catch exTapi As OpenNETCF.Tapi.TapiException
' Log error here.
Catch ex As Exception
' Log error here.
End Try
End Sub
Any ideas?
Regards,
Thomas
on a Pocket PC 2003 Phone Edition (WinCE 4.2). I'm using Alex
Feinman's Tapi wrapper (v.1.6). We have been field-testing the new
class this past week and randomly we are seeing a TapiException
(OpenNETCF.Tapi.TapiException) which is trashing the EXE process. This
is confusing since I am catching this error type in my handler.
For example:
Private Sub m_objCall_CallInfo(ByVal [Call] As OpenNETCF.Tapi.Call,
_
ByVal infoState As OpenNETCF.Tapi.LINECALLINFOSTATE, _
ByVal info As OpenNETCF.Tapi.LINECALLINFO) Handles
m_objCall.CallInfo
Try
If m_bGetCallInfo AndAlso [Call] Is m_objCall Then
m_bGetCallInfo = False
If m_objCall.Info.dwOrigin = LINECALLORIGIN.INBOUND
Then
Dim strCallerID As String
If m_objCall.Info.CallerID.Trim <> String.Empty
Then
strCallerID = m_objCall.Info.CallerID.Trim
Else
strCallerID = "Unknown"
End If
m_strLastCallerID = strCallerID
End If
If m_objCall.Info.dwOrigin = LINECALLORIGIN.OUTBOUND
Then
Dim strCalledID As String
If m_objCall.Info.CalledID.Trim <> String.Empty
Then
strCalledID = m_objCall.Info.CalledID.Trim
Else
strCalledID = "Unknown"
End If
m_strLastCalledID = strCalledID
End If
End If
Catch exTapi As OpenNETCF.Tapi.TapiException
' Log error here.
Catch ex As Exception
' Log error here.
End Try
End Sub
Any ideas?
Regards,
Thomas