Reproduceable bug: MSDN Subscriber **

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Steven Spencer \(Spinalogic\)

    #1

    Reproduceable bug: MSDN Subscriber **

    I have an error and I would say this is at compiler level in the VB.net
    language

    "If Not SQLConnectionSt ring = "" Then
    'If ds.Tables("Imag es") Is Nothing Then 'to avoid repeating when
    re-showing same image
    If ParametersChang ed Then
    If Not ds.Tables("Imag es") Is Nothing Then
    ds.Tables("Imag es").Clear()
    'If ds.Tables("Imag eTypes") Is Nothing Then
    MsgBox("ds.Tabl es(ImageTypes) Is Nothing") 'ds.Tables("Ima geTypes").Clear ()
    If Not ds.Tables("Pati entsDisplayImag eTypes") Is Nothing
    Then ds.Tables("Pati entsDisplayImag eTypes").Clear( )
    If m_ImageTypeID.E quals(Guid.Empt y) Then
    'there is no data. Clear the image tables.
    RefreshDisplay( )
    Else
    GetData()
    daImages.Fill(d s, "Images")
    'daImageTypes.F ill(ds, "ImageTypes ")
    daPatientsDispl ayImageTypes.Fi ll(ds,
    "PatientsDispla yImageTypes")
    GotoLastImage()
    GetImageRegistr ationPoints()
    If (ds.Tables("Ima ges").Rows.Coun t = 0) Then
    Me.noTypeError. Left = (Me.Width() / 2) -
    (Me.noTypeError .Width() / 2)
    Me.noTypeError. Visible = True
    Else
    Me.noTypeError. Visible = False
    'RefreshDisplay ()
    End If
    End If
    End If
    End If
    "

    The "ParametersChan ged" variable gets set to false.
    The next line of code executed is then the final "else" which sets
    Me.noTypeError. Visible = False
    THEN the code generates an exception and gets thrown up to the try catch
    around this line.
    Try
    ShowImage(Me.m_ PatientID, Me.m_ImageTypeI D)
    Catch ex As Exception
    ErrorSender.Sen dError("Clinica lImageViewer - Finished", ex)
    End Try

    The only problem is THERE IS NO EXCEPTION. The exception is unable to be
    queried in the IDE at ALL. The specific message given is: ex.ToString
    'ex.ToString' is not declared or the module containing it is not loaded in
    the debugging session.

    Please tell me that I'm not going crazy. If its obvious then point it out
    and call me an idiot ;P.

    Seriously though, its frustrating when there are errors like this when the
    code is correct....


  • Steven Spencer \(Spinalogic\)

    #2
    Re: Reproduceable bug: MSDN Subscriber **

    More info

    Try
    If Not (ImageViewer Is Nothing) Then ImageViewer.Fin ished()
    Catch ex As Exception
    ErrorSender.Sen dError("frmClin icalAnalysis - DoSave", ex)
    End Try
    Catch ex As Exception
    ErrorSender.Sen dError("frmClin icalAnalysis - DoSave", ex)
    End Try

    The debugger takes me to the SECOND exception even though the last line of
    code executed is the ImageViewer.Fin ished() command.
    "Steven Spencer (Spinalogic)" <Spence-Spinalogic@news group.nospamwro te in
    message news:eaGDiVFaHH A.1240@TK2MSFTN GP04.phx.gbl...
    >I have an error and I would say this is at compiler level in the VB.net
    >language
    >
    "If Not SQLConnectionSt ring = "" Then
    'If ds.Tables("Imag es") Is Nothing Then 'to avoid repeating
    when re-showing same image
    If ParametersChang ed Then
    If Not ds.Tables("Imag es") Is Nothing Then
    ds.Tables("Imag es").Clear()
    'If ds.Tables("Imag eTypes") Is Nothing Then
    MsgBox("ds.Tabl es(ImageTypes) Is Nothing")
    'ds.Tables("Ima geTypes").Clear ()
    If Not ds.Tables("Pati entsDisplayImag eTypes") Is Nothing
    Then ds.Tables("Pati entsDisplayImag eTypes").Clear( )
    If m_ImageTypeID.E quals(Guid.Empt y) Then
    'there is no data. Clear the image tables.
    RefreshDisplay( )
    Else
    GetData()
    daImages.Fill(d s, "Images")
    'daImageTypes.F ill(ds, "ImageTypes ")
    daPatientsDispl ayImageTypes.Fi ll(ds,
    "PatientsDispla yImageTypes")
    GotoLastImage()
    GetImageRegistr ationPoints()
    If (ds.Tables("Ima ges").Rows.Coun t = 0) Then
    Me.noTypeError. Left = (Me.Width() / 2) -
    (Me.noTypeError .Width() / 2)
    Me.noTypeError. Visible = True
    Else
    Me.noTypeError. Visible = False
    'RefreshDisplay ()
    End If
    End If
    End If
    End If
    "
    >
    The "ParametersChan ged" variable gets set to false.
    The next line of code executed is then the final "else" which sets
    Me.noTypeError. Visible = False
    THEN the code generates an exception and gets thrown up to the try catch
    around this line.
    Try
    ShowImage(Me.m_ PatientID, Me.m_ImageTypeI D)
    Catch ex As Exception
    ErrorSender.Sen dError("Clinica lImageViewer - Finished", ex)
    End Try
    >
    The only problem is THERE IS NO EXCEPTION. The exception is unable to be
    queried in the IDE at ALL. The specific message given is: ex.ToString
    'ex.ToString' is not declared or the module containing it is not loaded in
    the debugging session.
    >
    Please tell me that I'm not going crazy. If its obvious then point it out
    and call me an idiot ;P.
    >
    Seriously though, its frustrating when there are errors like this when the
    code is correct....
    >

    Comment

    Working...