Well, I've spent all afternoon trying to get a Stack Trace on this one.
All I can get is:
"SiteInspection.Win.fmSites.fmSites (C:\Documents and Settings\Bruce\My Documents\Visual Studio Projects\DD\SiteInspection\SiteInspection.Win\fmSites.vb, Line 554, Col 13,il OFFSET 126, native offset 440)
The program '[220] SiteInspection.Win.exe' has exited with code 0 (0x0)."
I've stepped through the programme and put try/catch statements in various places in the LLBLGen generated code but none of these enter the catch area. It comes out of the generated code to the line
prefetchPath.Add(SiteEntity.PrefetchPathSiteInsp, 0, relSiteInsp, siteInspFilter)
then jumps to the catch statement. I used the following code to capture and examine the Stack Trace for the exception:
Public Sub DisplayExceptionInfo(ByVal e As Exception, ByVal fm As Form)
Debug.WriteLine(e.Message)
Dim res As String = ""
Dim st As New StackTrace(e, True)
For i As Integer = 0 To st.FrameCount - 1
Dim sf As StackFrame = st.GetFrame(i)
Dim mi As MemberInfo = sf.GetMethod
res &= mi.DeclaringType.FullName & "." & fm.Name & " ("
If sf.GetFileName <> "" Then
res &= String.Format("{0}, Line {1}, Col {2},", _
sf.GetFileName, sf.GetFileLineNumber, sf.GetFileColumnNumber)
End If
If sf.GetILOffset <> StackFrame.OFFSET_UNKNOWN Then
res &= String.Format("il OFFSET {0},", sf.GetILOffset)
End If
res &= " native offset " & sf.GetNativeOffset & ")"
Debug.WriteLine(res)
Next
End Sub
Both the Windows project and the data (LLLBGen) project are in debug build mode.
I don't know what else I can do.