Closed christopherstamm closed 8 years ago
Side Question: Is your culture German?
Yes, Culture is German, Visual Studio is in english Os Windows 10 Pro 1511 German
Thanks for reporting this issue. We are taking a look at it.
@ChristopherStamm It would be helpful if you could share the VB code that is causing the compiler to crash.
Hello,
Had the same issue after Update 1. Could figure out the reason -> Invalid Imports statement (Imports xxxxxx), which was not found anymore. Perhabs this could help you.
Hello,
I have found the Function with the responsible code.
To complier crashes on "Exit Try" with an empty "Finally" block. Inserting some dummy code into the "Finally" block fixes the compiler crash I can reproduce this behavior in other Functions by removing the code from the "Finally" block
(This is very old code and needs refactoring :-) )
Private Sub GetMainDialog()
Const tmp1 = "tmpPrepareMainSelection1"
Const tmp2 = "tmpPrepareMainSelection2"
Try
Dim mainTable = "-"
For Each cfgDlgInfo In Gcf.GetDialogInfos()
If cfgDlgInfo.HauptDialog AndAlso cfgDlgInfo.ID <> DlgInfo.ID Then
mainTable = cfgDlgInfo.Tabelle
If Gcf.LinkBL.LinkExists(DlgInfo.Tabelle, cfgDlgInfo.Tabelle) Then
Dim linkInfos = Gcf.LinkBL.GetLinkInfos(DlgInfo.Tabelle, cfgDlgInfo.Tabelle)
If linkInfos.IsNotNull() Then
MainGIS.GisData.CreateTempTable(tmp1, tmp2, linkInfos)
SelectionNameManager.Add(tmp2, "")
If DataGIS.Table(tmp2).Rows.Count > 0 Then
DataGIS.CreateSelectionFromTable(tmp2, cfgDlgInfo.Tabelle)
DlgInfo = cfgDlgInfo
Exit Try
End If
End If
End If
End If
Next
Throw New Fehler.InfoException(String.Format(Resources.WRN_0010, mainTable))
Finally
End Try
End Sub
I was able to work around this by disabling optimizations.
I can repro the crash with the following code compiled with /optimize+:
Private Sub Test()
Try
Dim mainTable = "-"
For Each x In {""}
If String.IsNullOrEmpty(x) Then
Exit Try
End If
Next
Throw New System.NotSupportedException()
Finally
End Try
End Sub
@gafter Please verify.
Hello, i just updated to VS2015 Update1.
Now one of my Projects crashes on RELEASE build DEBUG compile runs fine. on VS 2013 or VS2015 without Update it compiles without issue. Targetframework is .net3.5 Language is VB
Build
Eventlog: