Hi,
I do have exception handlers, which write all the exception to a file, but
there isn't any exception written to the file...
Some strange thing also: I tried to see where the error happens, by writing
every other line a small message to a file. And it never wrote one...
like this:
Private Sub frmMain_Load(ByVal sender As Object, ByVal e As
System.EventArgs) Handles Me.Load
MessageSilent("GlobalErrorHandler")
'error-handeler
AddHandler System.Windows.Forms.Application.ThreadException,
AddressOf GlobalErrorHandler
MessageSilent("Info.ProductName")
Me.Text = My.Application.Info.ProductName & " - version " &
My.Application.Info.Version.ToString
MessageSilent("Test Connection")
When I don't put the MessageSilent-log-writers in it, the Me.Text = .. is
executed (because I can see it in the caption), but with the MessageSilent
it doesn't change the caption...
To be complete: this is the wholce MessageSilent-method:
Public Sub MessageSilent(ByVal strMessage As String, Optional ByVal
strCaption As String = "")
Dim swFile As StreamWriter
swFile = New StreamWriter(Application.StartupPath & "\" &
strErrorFile, True, System.Text.Encoding.GetEncoding(1252))
If strMessage.Length > 0 Then
swFile.WriteLine(Format(Now, "dd/MM/yyyy HH:mm:ss fffffff ") &
"MessageSilent: " & strCaption & " - " & strMessage)
Else
swFile.WriteLine(Format(Now, "dd/MM/yyyy HH:mm:ss fffffff ") &
"MessageSilent: ")
End If
swFile.Flush()
swFile.Close()
End Sub
"Carlos J. Quintero [VB MVP]" <ca*****@NOSPAMsogecable.com> wrote in message
news:O3**************@TK2MSFTNGP11.phx.gbl...
Hi Pieter,
Some ideas:
- Do you have exception handlers to trap exceptions?
- Develop and debug as a non-admin. See these resources about developing
as non-admin :
http://www.mztools.com/resources_net...s.htm#NonAdmin
--
Best regards,
Carlos J. Quintero
MZ-Tools: Productivity add-ins for Visual Studio
You can code, design and document much faster:
http://www.mztools.com