hsb_455@yahoo.com
New member
- Joined
- Dec 17, 2008
- Messages
- 1
- Programming Experience
- 3-5
I have a VB.NET application that when I want to debug I cannot do it.
In the above sub when the program reaches to this line:
It goes directly to the Exit Sub statement in the catch block whereas no exception has happened and when I watch ex it says it s nothing, but the same sub works fine in someone else’s computer, what I guess is that there is something wrong with .Net. I have .Net 2.0 installed and service pack 1 for .Net 2.0 and VS2005 is installed but I still have the same problem.
This doesn’t cause an error or a flaw but at this point I need to debug my program and I cant!!!
Could you please let me know what you think?
Regards
Hooman
VB.NET:
Private Sub LoadReasonCodes(ByVal decision As String)
Try
Dim oDS As New DataSet
cmbReasonCode.Items.Clear()
cmbReasonCode.Text = ""
oDS = objDefinition.GetReasonCodesByDecision(isArchiveDB, decision)
If Not oDS Is Nothing Then
If oDS.Tables.Count > 0 Then
If oDS.Tables(0).Rows.Count > 0 Then
For Each oDR As DataRow In oDS.Tables(0).Rows
cmbReasonCode.Items.Add(oDR.Item("Reason_Code").ToString.Trim & " - " & oDR.Item("Reason_Description").ToString.Trim)
Next
End If
End If
End If
Catch ex As Exception
Call ActivateFunctions.ShowErrorScreen("Windows Client: " & Me.Text.Trim & ", Sub = LoadReasonCodes", ex.Message.Trim)
Exit Sub
End Try
End Sub
In the above sub when the program reaches to this line:
cmbReasonCode.Items.Add(oDR.Item("Reason_Code").ToString.Trim & " - " & oDR.Item("Reason_Description").ToString.Trim)
It goes directly to the Exit Sub statement in the catch block whereas no exception has happened and when I watch ex it says it s nothing, but the same sub works fine in someone else’s computer, what I guess is that there is something wrong with .Net. I have .Net 2.0 installed and service pack 1 for .Net 2.0 and VS2005 is installed but I still have the same problem.
This doesn’t cause an error or a flaw but at this point I need to debug my program and I cant!!!
Could you please let me know what you think?
Regards
Hooman
Last edited by a moderator: