|
View:
New views
11 Messages
—
Rating Filter:
Alert me
|
|
|
FileSystemWatcherHi I'm using mono for a project which I want to run on more than just windows. The project involves a filesystemwatcher object to monitor several files used by the program and to trigger an update to the contents of the variables holding the contents of the files in memory.
This works fine on MS .NET but on mono (using windows and Arch linux as test systems, both with mono 1.2.5 and both fully updated) the program will not run and if --debug is specified it is revealed that it claims that the filesystemwatcher is not implemented. The mono FAQ says that any up-to-date kernel should work with it and google does not show much information on the issue. Does anyone know how to get it working or is there a good alternative? |
|
|
Re: FileSystemWatcherWith mono 1.2.6 the program starts but crashes as soon as the filesystem watcher detects any changes in the directory it monitors. I can't give the error message because windows can't copy from a command prompt but there are a lot of references to C:\cygwin\tmp\... I don't know why this is as you are not supposed to need cygwin to run mono.
|
|
|
Re: FileSystemWatcherYou can copy by clicking the icon in the upper-left > edit > mark.
Highlight what you want copied and hit <enter>. Paste the results here. -Abe On Jan 14, 2008, at 1:04 PM, pjd wrote: > > With mono 1.2.6 the program starts but crashes as soon as the > filesystem > watcher detects any changes in the directory it monitors. I can't > give the > error message because windows can't copy from a command prompt but > there are > a lot of references to C:\cygwin\tmp\... I don't know why this is as > you are > not supposed to need cygwin to run mono. > > > pjd wrote: >> >> Hi I'm using mono for a project which I want to run on more than just >> windows. The project involves a filesystemwatcher object to monitor >> several files used by the program and to trigger an update to the >> contents >> of the variables holding the contents of the files in memory. >> This works fine on MS .NET but on mono (using windows and Arch >> linux as >> test systems, both with mono 1.2.5 and both fully updated) the >> program >> will not run and if --debug is specified it is revealed that it >> claims >> that the filesystemwatcher is not implemented.The mono FAQ says >> that any >> up-to-date kernel should work with it and google does not show much >> information on the issue. >> >> Does anyone know how to get it working or is there a good >> alternative? > -- > View this message in context: http://www.nabble.com/FileSystemWatcher-tp14160191p14577349.html > Sent from the Mono - General mailing list archive at Nabble.com. > > _______________________________________________ > Mono-list maillist - Mono-list@... > http://lists.ximian.com/mailman/listinfo/mono-list _______________________________________________ Mono-list maillist - Mono-list@... http://lists.ximian.com/mailman/listinfo/mono-list |
|
|
Re: FileSystemWatcherpjd wrote:
> With mono 1.2.6 the program starts but crashes as soon as the filesystem > watcher detects any changes in the directory it monitors. I can't give the > error message because windows can't copy from a command prompt but there are > a lot of references to C:\cygwin\tmp\... I don't know why this is as you are > not supposed to need cygwin to run mono. The references are actually part of the backtrace containing the original source code file names used to build the Mono version distributed with the installer. The build is performed in c:\cygwin\tmp on the build machine. Of course you can copy from the command prompt: click on the system menu of the console window, then on "Edit", then on "Mark". Robert _______________________________________________ Mono-list maillist - Mono-list@... http://lists.ximian.com/mailman/listinfo/mono-list |
|
|
Re: FileSystemWatcherThe error message is: Unhandled Exception: System.MissingMemberException: Cannot find the requested cl ass member. at Microsoft.VisualBasic.CompilerServices.LateBinder.BindToMethod (System.Reflec tion.BindingFlags,System.Reflection.MethodBase[],object[]&,System.Reflection.Par ameterModifier[],System.Globalization.CultureInfo,string[],object&) <0x00426> at System.MonoType.InvokeMember (string,System.Reflection.BindingFlags,System.Re flection.Binder,object,object[],System.Reflection.ParameterModifier[],System.Glo balization.CultureInfo,string[]) [0x00203] in C:\cygwin\tmp\monobuild\build\BUIL D\mono-1.2.6\mcs\class\corlib\System\MonoType.cs:371 at Microsoft.VisualBasic.CompilerServices.LateBinding.LateGet (object,System.Typ e,string,object[],string[],bool[]) <0x00095> at Microsoft.VisualBasic.CompilerServices.NewLateBinding.LateGet (object,System. Type,string,object[],string[],System.Type[],bool[]) <0x0001c> at Room_booking.frmMain.delBooking (int) <0x00074> at (wrapper remoting-invoke-with-check) Room_booking.frmMain.delBooking (int) <0 x00045> at Room_booking.frmBooking.delbooking () <0x0018d> at (wrapper remoting-invoke-with-check) Room_booking.frmBooking.delbooking () <0 x00038> at Room_booking.frmBooking.cmdDelete_Click (object,System.EventArgs) <0x0000d> at System.Windows.Forms.Control.OnClick (System.EventArgs) [0x0001c] in C:\cygwi n\tmp\monobuild\build\BUILD\mono-1.2.6\mcs\class\Managed.Windows.Forms\System.Wi ndows.Forms\Control.cs:5657 at System.Windows.Forms.Button.OnClick (System.EventArgs) [0x00024] in C:\cygwin \tmp\monobuild\build\BUILD\mono-1.2.6\mcs\class\Managed.Windows.Forms\System.Win dows.Forms\Button.cs:104 at System.Windows.Forms.ButtonBase.OnMouseUp (System.Windows.Forms.MouseEventArg s) [0x00076] in C:\cygwin\tmp\monobuild\build\BUILD\mono-1.2.6\mcs\class\Managed .Windows.Forms\System.Windows.Forms\ButtonBase.cs:616 at System.Windows.Forms.Button.OnMouseUp (System.Windows.Forms.MouseEventArgs) [ 0x00000] in C:\cygwin\tmp\monobuild\build\BUILD\mono-1.2.6\mcs\class\Managed.Win dows.Forms\System.Windows.Forms\Button.cs:126 at System.Windows.Forms.Control.WmLButtonUp (System.Windows.Forms.Message&) [0x0 005c] in C:\cygwin\tmp\monobuild\build\BUILD\mono-1.2.6\mcs\class\Managed.Window s.Forms\System.Windows.Forms\Control.cs:5253 at System.Windows.Forms.Control.WndProc (System.Windows.Forms.Message&) [0x0017c ] in C:\cygwin\tmp\monobuild\build\BUILD\mono-1.2.6\mcs\class\Managed.Windows.Fo rms\System.Windows.Forms\Control.cs:5006 at System.Windows.Forms.ButtonBase.WndProc (System.Windows.Forms.Message&) [0x00 055] in C:\cygwin\tmp\monobuild\build\BUILD\mono-1.2.6\mcs\class\Managed.Windows .Forms\System.Windows.Forms\ButtonBase.cs:674 at System.Windows.Forms.Button.WndProc (System.Windows.Forms.Message&) [0x00000] in C:\cygwin\tmp\monobuild\build\BUILD\mono-1.2.6\mcs\class\Managed.Windows.For ms\System.Windows.Forms\Button.cs:148 at ControlWindowTarget.OnMessage (System.Windows.Forms.Message&) [0x00000] in C: \cygwin\tmp\monobuild\build\BUILD\mono-1.2.6\mcs\class\Managed.Windows.Forms\Sys tem.Windows.Forms\Control.cs:225 at ControlNativeWindow.WndProc (System.Windows.Forms.Message&) [0x00000] in C:\c ygwin\tmp\monobuild\build\BUILD\mono-1.2.6\mcs\class\Managed.Windows.Forms\Syste m.Windows.Forms\Control.cs:206 at System.Windows.Forms.NativeWindow.WndProc (intptr,System.Windows.Forms.Msg,in tptr,intptr) [0x0006a] in C:\cygwin\tmp\monobuild\build\BUILD\mono-1.2.6\mcs\cla ss\Managed.Windows.Forms\System.Windows.Forms\NativeWindow.cs:188 at System.Windows.Forms.XplatUIWin32.InternalWndProc (intptr,System.Windows.Form s.Msg,intptr,intptr) [0x0002c] in C:\cygwin\tmp\monobuild\build\BUILD\mono-1.2.6 \mcs\class\Managed.Windows.Forms\System.Windows.Forms\XplatUIWin32.cs:1886 at (wrapper native-to-managed) System.Windows.Forms.XplatUIWin32.InternalWndProc (intptr,System.Windows.Forms.Msg,intptr,intptr) <0x00065> at (wrapper managed-to-native) System.Windows.Forms.XplatUIWin32.Win32DispatchMe ssage (System.Windows.Forms.MSG&) <0x00004> at System.Windows.Forms.XplatUIWin32.DispatchMessage (System.Windows.Forms.MSG&) [0x00000] in C:\cygwin\tmp\monobuild\build\BUILD\mono-1.2.6\mcs\class\Managed.W indows.Forms\System.Windows.Forms\XplatUIWin32.cs:2081 at System.Windows.Forms.XplatUI.DispatchMessage (System.Windows.Forms.MSG&) [0x0 0000] in C:\cygwin\tmp\monobuild\build\BUILD\mono-1.2.6\mcs\class\Managed.Window s.Forms\System.Windows.Forms\XplatUI.cs:551 at System.Windows.Forms.Application.RunLoop (bool,System.Windows.Forms.Applicati onContext) [0x00359] in C:\cygwin\tmp\monobuild\build\BUILD\mono-1.2.6\mcs\class \Managed.Windows.Forms\System.Windows.Forms\Application.cs:844 at System.Windows.Forms.Application.Run (System.Windows.Forms.ApplicationContext ) [0x00014] in C:\cygwin\tmp\monobuild\build\BUILD\mono-1.2.6\mcs\class\Managed. Windows.Forms\System.Windows.Forms\Application.cs:630 at System.Windows.Forms.Application.Run (System.Windows.Forms.Form) [0x00000] in C:\cygwin\tmp\monobuild\build\BUILD\mono-1.2.6\mcs\class\Managed.Windows.Forms\ System.Windows.Forms\Application.cs:618 at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.OnRun ( ) <0x00040> at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.Run (st ring[]) <0x0000b> at Room_booking.My.MyApplication.Main (string[]) <0x0003e> |
|
|
Re: FileSystemWatcherHi,
> > > > pjd wrote: > > > > With mono 1.2.6 the program starts but crashes as soon as the filesystem > > watcher detects any changes in the directory it monitors. I can't give the > > error message because windows can't copy from a command prompt but there > > are a lot of references to C:\cygwin\tmp\... I don't know why this is as > > you are not supposed to need cygwin to run mono. > > > > The error message is: > > Unhandled Exception: System.MissingMemberException: Cannot find the requested class member. > at Microsoft.VisualBasic.CompilerServices.LateBinder.BindToMethod > (System.Reflection.BindingFlags,System.Reflection.MethodBase[],object[]&,Sys tem.Refle > ction.ParameterModifier[],System.Globalization.CultureInfo,string[],object&) > <0x00426> > at System.MonoType.InvokeMember (string,System.Reflection.BindingFlags,System.Reflection.Binder,object,objec t[],System.Reflection.ParameterModifier[],System.Globalization.CultureInfo,s tring[]) [0x00203] in > C:\cygwin\tmp\monobuild\build\BUILD\mono-1.2.6\mcs\class\corlib\System\MonoT ype.cs:371 > at Microsoft.VisualBasic.CompilerServices.LateBinding.LateGet (object,System.Type,string,object[],string[],bool[]) <0x00095> > at Microsoft.VisualBasic.CompilerServices.NewLateBinding.LateGet (object,System.Type,string,object[],string[],System.Type[],bool[]) <0x0001c> > at Room_booking.frmMain.delBooking (int) <0x00074> This is probably a problem out late binding in visual basic, but I'd need to know what this method is trying to do (what method/property is it trying to access, etc), could you paste the code in this method? Rolf > at (wrapper remoting-invoke-with-check) Room_booking.frmMain.delBooking (int) <0x00045> > at Room_booking.frmBooking.delbooking () <0x0018d> > at (wrapper remoting-invoke-with-check) Room_booking.frmBooking.delbooking () <0x00038> > at Room_booking.frmBooking.cmdDelete_Click (object,System.EventArgs) <0x0000d> > at System.Windows.Forms.Control.OnClick (System.EventArgs) [0x0001c] in C:\cygwin\tmp\monobuild\build\BUILD\mono-1.2.6\mcs\class\Managed.Windows.For ms\System.Windows.Forms\Control.cs:5657 > at System.Windows.Forms.Button.OnClick (System.EventArgs) [0x00024] in C:\cygwin\tmp\monobuild\build\BUILD\mono-1.2.6\mcs\class\Managed.Windows.For ms\System.Windows.Forms\Button.cs:104 > at System.Windows.Forms.ButtonBase.OnMouseUp (System.Windows.Forms.MouseEventArgs) [0x00076] in C:\cygwin\tmp\monobuild\build\BUILD\mono-1.2.6\mcs\class\Managed.Windows.For ms\System.Windows.Forms\ButtonBase.cs:616 > at System.Windows.Forms.Button.OnMouseUp (System.Windows.Forms.MouseEventArgs) [0x00000] in C:\cygwin\tmp\monobuild\build\BUILD\mono-1.2.6\mcs\class\Managed.Windows.For ms\System.Windows.Forms\Button.cs:126 > at System.Windows.Forms.Control.WmLButtonUp (System.Windows.Forms.Message&) [0x0005c] in C:\cygwin\tmp\monobuild\build\BUILD\mono-1.2.6\mcs\class\Managed.Windows.For ms\System.Windows.Forms\Control.cs:5253 > at System.Windows.Forms.Control.WndProc (System.Windows.Forms.Message&) [0x0017c] inC:\cygwin\tmp\monobuild\build\BUILD\mono-1.2.6\mcs\class\Managed.Windows.F orms\System.Windows.Forms\Control.cs:5006 > at System.Windows.Forms.ButtonBase.WndProc (System.Windows.Forms.Message&) [0x00055] in C:\cygwin\tmp\monobuild\build\BUILD\mono-1.2.6\mcs\class\Managed.Windows.For ms\System.Windows.Forms\ButtonBase.cs:674 > at System.Windows.Forms.Button.WndProc (System.Windows.Forms.Message&) [0x00000] in C:\cygwin\tmp\monobuild\build\BUILD\mono-1.2.6\mcs\class\Managed.Windows.For ms\System.Windows.Forms\Button.cs:148 > at ControlWindowTarget.OnMessage (System.Windows.Forms.Message&) [0x00000] in C:\cygwin\tmp\monobuild\build\BUILD\mono-1.2.6\mcs\class\Managed.Windows.For ms\System.Windows.Forms\Control.cs:225 > at ControlNativeWindow.WndProc (System.Windows.Forms.Message&) [0x00000] in C:\cygwin\tmp\monobuild\build\BUILD\mono-1.2.6\mcs\class\Managed.Windows.For ms\System.Windows.Forms\Control.cs:206 > at System.Windows.Forms.NativeWindow.WndProc (intptr,System.Windows.Forms.Msg,intptr,intptr) [0x0006a] in C:\cygwin\tmp\monobuild\build\BUILD\mono-1.2.6\mcs\clas\Managed.Windows.Form s\System.Windows.Forms\NativeWindow.cs:188 > at System.Windows.Forms.XplatUIWin32.InternalWndProc (intptr,System.Windows.Forms.Msg,intptr,intptr) [0x0002c] in C:\cygwin\tmp\monobuild\build\BUILD\mono-1.2.6\mcs\class\Managed.Windows.For ms\System.Windows.Forms\XplatUIWin32.cs:1886 > at (wrapper native-to-managed) System.Windows.Forms.XplatUIWin32.InternalWndProc (intptr,System.Windows.Forms.Msg,intptr,intptr) <0x00065> > at (wrapper managed-to-native) System.Windows.Forms.XplatUIWin32.Win32DispatchMessage (System.Windows.Forms.MSG&) <0x00004> > at System.Windows.Forms.XplatUIWin32.DispatchMessage (System.Windows.Forms.MSG&) [0x00000] in C:\cygwin\tmp\monobuild\build\BUILD\mono-1.2.6\mcs\class\Managed.Windows.For ms\System.Windows.Forms\XplatUIWin32.cs:2081 > at System.Windows.Forms.XplatUI.DispatchMessage (System.Windows.Forms.MSG&) [0x00000] in C:\cygwin\tmp\monobuild\build\BUILD\mono-1.2.6\mcs\class\Managed.Windows.For ms\System.Windows.Forms\XplatUI.cs:551 > at System.Windows.Forms.Application.RunLoop (bool,System.Windows.Forms.ApplicationContext) [0x00359] in C:\cygwin\tmp\monobuild\build\BUILD\mono-1.2.6\mcs\class\Managed.Windows.For ms\System.Windows.Forms\Application.cs:844 > at System.Windows.Forms.Application.Run (System.Windows.Forms.ApplicationContext) [0x00014] in C:\cygwin\tmp\monobuild\build\BUILD\mono-1.2.6\mcs\class\Managed.Windows.For ms\System.Windows.Forms\Application.cs:630 > at System.Windows.Forms.Application.Run (System.Windows.Forms.Form) [0x00000] in C:\cygwin\tmp\monobuild\build\BUILD\mono-1.2.6\mcs\class\Managed.Windows.For ms\System.Windows.Forms\Application.cs:618 > at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.OnRun () <0x00040> at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.Run (string[]) <0x0000b> > at Room_booking.My.MyApplication.Main (string[]) <0x0003e> > > -- > View this message in context: http://www.nabble.com/FileSystemWatcher- > tp14160191p14808088.html > Sent from the Mono - General mailing list archive at Nabble.com. > > _______________________________________________ > Mono-list maillist - Mono-list@... > http://lists.ximian.com/mailman/listinfo/mono-list > > > -- > No virus found in this incoming message. > Checked by AVG Free Edition. > Version: 7.5.516 / Virus Database: 269.19.2/1223 - Release Date: > 13/01/2008 20:23 _______________________________________________ Mono-list maillist - Mono-list@... http://lists.ximian.com/mailman/listinfo/mono-list |
|
|
Re: FileSystemWatcherit is a filesystemwatcher_changed event |
|
|
Re: FileSystemWatcher> -----Original Message----- > From: mono-list-bounces@... [mailto:mono-list- > bounces@...] On Behalf Of pjd > Sent: lunes, 14 de enero de 2008 19:54 > To: mono-list@... > Subject: Re: [Mono-list] FileSystemWatcher > > > > > Rolf Bjarne Kvinge-2 wrote: > > > > Hi, > > > > This is probably a problem out late binding in visual basic, but I'd trying > > to access, etc), could you paste the code in this method? > > > > Rolf > > > > > > it is a filesystemwatcher_changed event > Can you create some code to that reproduces this so that I can try it out? Otherwise it will be hard to get any further. Rolf > -- > View this message in context: http://www.nabble.com/FileSystemWatcher- > tp14160191p14809207.html > Sent from the Mono - General mailing list archive at Nabble.com. > > _______________________________________________ > Mono-list maillist - Mono-list@... > http://lists.ximian.com/mailman/listinfo/mono-list > > > -- > No virus found in this incoming message. > Checked by AVG Free Edition. > Version: 7.5.516 / Virus Database: 269.19.2/1223 - Release Date: > 13/01/2008 20:23 _______________________________________________ Mono-list maillist - Mono-list@... http://lists.ximian.com/mailman/listinfo/mono-list |
|
|
Re: FileSystemWatcherI have just discovered that the bug is not where I thought it is, but I still do not know what the problem is this file should work under .NET but not mono. As a rule I always compile under .NET Form1.vb the crash will occur on line 33 What can I do to fix this? |
|
|
Re: FileSystemWatcher>
> > I have just discovered that the bug is not where I thought it is > > this file should work under .NET but not mono. As a rule I always > compile > under .NET > http://www.nabble.com/file/p14815890/Form1.vb Form1.vb > > the crash will occur on line 33 Thanks for the repro, I've been able to reproduce it and will inform you when I've fixed it. Rolf > -- > View this message in context: http://www.nabble.com/FileSystemWatcher- > tp14160191p14815890.html > Sent from the Mono - General mailing list archive at Nabble.com. > > _______________________________________________ > Mono-list maillist - Mono-list@... > http://lists.ximian.com/mailman/listinfo/mono-list > > > -- > No virus found in this incoming message. > Checked by AVG Free Edition. > Version: 7.5.516 / Virus Database: 269.19.2/1223 - Release Date: > 13/01/2008 20:23 _______________________________________________ Mono-list maillist - Mono-list@... http://lists.ximian.com/mailman/listinfo/mono-list |
|
|
Re: FileSystemWatcher> > I have just discovered that the bug is not where I thought it is
And there are various workarounds until then. :-) The simplest is do an
> > > > this file should work under .NET but not mono. As a rule I always > > compile under .NET http://www.nabble.com/file/p14815890/Form1.vb > > Form1.vb > > > > the crash will occur on line 33 > > Thanks for the repro, I've been able to reproduce it and will > inform you when I've fixed it. > explicit cast whenever you access an element of the collection, i.e. change line 33 to: If CType(collection(index), thing).num = num Then '... That works fine, the compiler can then early-bind to the 'num' field. (If you set Option Strict On, then the compiler would disallow the former form, and any other uses of late binding...) Apologies if I'm teaching my granny to such eggs... Another option is to change to using a Generic collections (i.e. System.Collections.Generic.List(Of thing)), it is type-safe and thus the cast is unnecessary. However the VB Collections class uses 1-based indices whereas the collections classes from the Framework Class Library are all 0-indexed, so you'd need to make changes respectively... Andy _______________________________________________ Mono-list maillist - Mono-list@... http://lists.ximian.com/mailman/listinfo/mono-list |
| Free embeddable forum powered by Nabble | Forum Help |