[Mono-list] Mono crash on writing to logfile/opening log

J.M. G jhmgbl2 at t-online.de
Mon Mar 23 17:41:29 EDT 2009


Hallo! I have installed Mono 2.2 and Mono-Basic 2.2 and now I get an Exception even before the application opens the database:
I am quite sure that nobody else is accessing this file! And anyway. The location of the file is changed to $Applicationdir/Repetit.Net.T.Mono.log!

Unhandled Exception: System.InvalidOperationException: WinForms_SeeInnerException ---> System.IO.IOException: Sharing violation on path /home/jhmgbl/.config/G/Repetit.Net.T.Mono/0.6.01.0/Repetit.Net.T.Mono.log
  at System.IO.FileStream..ctor (System.String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, Boolean anonymous, FileOptions options) [0x00265] in /media/disk-1/Downloads/Linux/mono-2.2/mcs/class/corlib/System.IO/FileStream.cs:312 
  at System.IO.FileStream..ctor (System.String path, FileMode mode, FileAccess access, FileShare share) [0x00000] in /media/disk-1/Downloads/Linux/mono-2.2/mcs/class/corlib/Assembly/AssemblyInfo.cs:1 
  at (wrapper remoting-invoke-with-check) System.IO.FileStream:.ctor (string,System.IO.FileMode,System.IO.FileAccess,System.IO.FileShare)
  at System.IO.StreamWriter..ctor (System.String path, Boolean append, System.Text.Encoding encoding, Int32 bufferSize) [0x00039] in /media/disk-1/Downloads/Linux/mono-2.2/mcs/class/corlib/System.IO/StreamWriter.cs:124 
  at System.IO.StreamWriter..ctor (System.String path, Boolean append, System.Text.Encoding encoding) [0x00000] in /media/disk-1/Downloads/Linux/mono-2.2/mcs/class/corlib/Assembly/AssemblyInfo.cs:1 
  at (wrapper remoting-invoke-with-check) System.IO.StreamWriter:.ctor (string,bool,System.Text.Encoding)
  at Microsoft.VisualBasic.Logging.FileLogTraceListener.GetOpenStream () [0x0000e] in /media/disk-1/Downloads/Linux/mono-basic-2.2/vbruntime/Microsoft.VisualBasic/Microsoft.VisualBasic.Logging/FileLogTraceListener.vb:227 
  at (wrapper remoting-invoke-with-check) Microsoft.VisualBasic.Logging.FileLogTraceListener:GetOpenStream ()
  at Microsoft.VisualBasic.Logging.FileLogTraceListener.WriteLine (System.String message) [0x00000] in /media/disk-1/Downloads/Linux/mono-basic-2.2/vbruntime/Microsoft.VisualBasic/Microsoft.VisualBasic.Logging/FileLogTraceListener.vb:195 
  at Microsoft.VisualBasic.Logging.FileLogTraceListener.TraceEvent (System.Diagnostics.TraceEventCache eventCache, System.String source, TraceEventType eventType, Int32 id, System.String message) [0x00266] in /media/disk-1/Downloads/Linux/mono-basic-2.2/vbruntime/Microsoft.VisualBasic/Microsoft.VisualBasic.Logging/FileLogTraceListener.vb:170 
  at System.Diagnostics.TraceSource.TraceEvent (TraceEventType eventType, Int32 id, System.String message) [0x00041] in /media/disk-1/Downloads/Linux/mono-2.2/mcs/class/System/System.Diagnostics/TraceSource.cs:146 
  at Microsoft.VisualBasic.Logging.Log.WriteEntry (System.String message, TraceEventType severity, Int32 id) [0x00019] in /media/disk-1/Downloads/Linux/mono-basic-2.2/vbruntime/Microsoft.VisualBasic/Microsoft.VisualBasic.Logging/Log.vb:76 
  at Microsoft.VisualBasic.Logging.Log.WriteEntry (System.String message, TraceEventType severity) [0x00000] in /media/disk-1/Downloads/Linux/mono-basic-2.2/vbruntime/Microsoft.VisualBasic/Microsoft.VisualBasic.Logging/Log.vb:67 
  at Repetit.net.T.SQLite.frmMain.frmMain_Resize (System.Object eventSender, System.EventArgs eventArgs) [0x00000] 
  at System.Windows.Forms.Control.OnResizeInternal (System.EventArgs e) [0x00028] in /media/disk-1/Downloads/Linux/mono-2.2/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Control.cs:6567 
  at System.Windows.Forms.Control.OnResize (System.EventArgs e) [0x00000] in /media/disk-1/Downloads/Linux/mono-2.2/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Control.cs:6559 
  at System.Windows.Forms.Form.OnResize (System.EventArgs e) [0x00000] in /media/disk-1/Downloads/Linux/mono-2.2/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Form.cs:2201 
  at System.Windows.Forms.Control.OnSizeChanged (System.EventArgs e) [0x00006] in /media/disk-1/Downloads/Linux/mono-2.2/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Control.cs:6581 
  at System.Windows.Forms.Control.UpdateBounds (Int32 x, Int32 y, Int32 width, Int32 height, Int32 clientWidth, Int32 clientHeight) [0x000f2] in /media/disk-1/Downloads/Linux/mono-2.2/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Control.cs:5201 
  at System.Windows.Forms.Control.UpdateBounds (Int32 x, Int32 y, Int32 width, Int32 height) [0x00023] in /media/disk-1/Downloads/Linux/mono-2.2/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Control.cs:5162 
  at System.Windows.Forms.Control.SetBoundsCoreInternal (Int32 x, Int32 y, Int32 width, Int32 height, BoundsSpecified specified) [0x0012c] in /media/disk-1/Downloads/Linux/mono-2.2/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Control.cs:5031 
  at System.Windows.Forms.Control.SetBoundsCore (Int32 x, Int32 y, Int32 width, Int32 height, BoundsSpecified specified) [0x00000] in /media/disk-1/Downloads/Linux/mono-2.2/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Control.cs:4977 
  at System.Windows.Forms.Form.SetBoundsCore (Int32 x, Int32 y, Int32 width, Int32 height, BoundsSpecified specified) [0x0009a] in /media/disk-1/Downloads/Linux/mono-2.2/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Form.cs:2383 
  at System.Windows.Forms.Control.SetBoundsInternal (Int32 x, Int32 y, Int32 width, Int32 height, BoundsSpecified specified) [0x000a8] in /media/disk-1/Downloads/Linux/mono-2.2/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Control.cs:4432 
  at System.Windows.Forms.Control.SetBounds (Int32 x, Int32 y, Int32 width, Int32 height, BoundsSpecified specified) [0x00044] in /media/disk-1/Downloads/Linux/mono-2.2/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Control.cs:4417 
  at System.Windows.Forms.Form.SetClientSizeCore (Int32 x, Int32 y) [0x000f6] in /media/disk-1/Downloads/Linux/mono-2.2/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Form.cs:2415 
  at System.Windows.Forms.Control.set_ClientSize (Size value) [0x00000] in /media/disk-1/Downloads/Linux/mono-2.2/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Control.cs:2528 
  at System.Windows.Forms.Form.set_ClientSize (Size value) [0x00007] in /media/disk-1/Downloads/Linux/mono-2.2/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Form.cs:654 
  at (wrapper remoting-invoke-with-check) System.Windows.Forms.Form:set_ClientSize (System.Drawing.Size)
  at Repetit.net.T.SQLite.frmMain.InitializeComponent () [0x00000] 
  at (wrapper remoting-invoke-with-check) Repetit.net.T.SQLite.frmMain:InitializeComponent ()
  at Repetit.net.T.SQLite.frmMain..ctor () [0x00000] 
  at (wrapper managed-to-native) System.Reflection.MonoCMethod:InternalInvoke (object,object[],System.Exception&)
  at System.Reflection.MonoCMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x000a6] in /media/disk-1/Downloads/Linux/mono-2.2/mcs/class/corlib/System.Reflection/MonoMethod.cs:434 
  --- End of inner exception stack trace ---
  at Repetit.net.T.SQLite.My.MyProject+MyForms.Create__Instance__[frmMain] (Repetit.net.T.SQLite.frmMain Instance) [0x00000] 
  at Repetit.net.T.SQLite.My.MyProject+MyForms.get_frmMain () [0x00000] 
  at Repetit.net.T.SQLite.My.MyApplication.OnCreateMainForm () [0x00000] 
  at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.OnRun () [0x0000e] in /media/disk-1/Downloads/Linux/mono-basic-2.2/vbruntime/Microsoft.VisualBasic/Microsoft.VisualBasic.ApplicationServices/WindowsFormsApplicationBase.vb:192 
  at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.Run (System.String[] commandLine) [0x00000] in /media/disk-1/Downloads/Linux/mono-basic-2.2/vbruntime/Microsoft.VisualBasic/Microsoft.VisualBasic.ApplicationServices/WindowsFormsApplicationBase.vb:79 
  at Repetit.net.T.SQLite.My.MyApplication.Main (System.String[] Args) [0x00000]

Regards

Hans



More information about the Mono-list mailing list