Bug when using delegates in VB code?

Topics: Developer Forum
Aug 22, 2007 at 9:58 AM
Edited Aug 22, 2007 at 10:02 AM
I just downloaded the installer from http://msdn2.microsoft.com/en-us/vstudio/bb190754.aspx.
It looks and runs good, except that the source code outliner hangs in several of my source files: all those where delegates are declared.
Is anyone else experiencing this problem?

This snippet is lifted from one of my source files, the outliner hangs with "Updating, please wait". Commenting out the first line fixes it.
I've got similarly constructed code in several of my projects, and so far it looks like the outliner hangs on all of them.

Private Delegate Sub dAdjustIPStatus(ByVal MI As Integer, ByVal Minutes As Integer)
Private Sub AdjustIPStatus(ByVal MI As Integer, ByVal Minutes As Integer)
If LVW.InvokeRequired Then
Dim d As New dAdjustIPStatus(AddressOf AdjustIPStatus)
LVW.Invoke(d, New Object() {MI, Minutes})
Else
Try
Dim li As ListViewItem = LVW.Items("M" & MI)
If Minutes > 15 Then
li.SubItems(4).ForeColor = Color.Red
Else
li.SubItems(4).ForeColor = Color.Black
End If
Catch ex As Exception
' ignore
Debug.WriteLine(ex.ToString)
End Try
End If
End Sub

Sorry, I didn't find a way to include code without it trimming leading spaces ( { " " } didn't work for multi-line)
Nov 22, 2008 at 4:07 PM
Same problem here, same diagnosis/