Re: [Mono-list] How can I get line numbers on MonoMac app stack traces?
Should be MONO_OPTIONS, not MONO_ENV_OPTIONS, right? On 01/11/12 21:29, Maurício Linhares wrote: No deal: ➜ winclient git:(develop) ✗ export MONO_ENV_OPTIONS=--debug ➜ winclient git:(develop) ✗ ./Sync.app/Contents/MacOS/Sync Unhandled Exception: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. --- System.Exception: I am going to crash now. at Sync.MacConfiguration..ctor (System.String destinationPath, IDatabasePathGenerator pathGenerator) [0x0] in filename unknown:0 at Sync.MacConfiguration..ctor () [0x0] in filename unknown:0 at (wrapper managed-to-native) System.Reflection.MonoCMethod:InternalInvoke (System.Reflection.MonoCMethod,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) [0x0] in filename unknown:0 --- End of inner exception stack trace --- at System.Reflection.MonoCMethod.Invoke (object,System.Reflection.BindingFlags,System.Reflection.Binder,object[],System.Globalization.CultureInfo) 0x001f3 at System.Reflection.MonoCMethod.Invoke (System.Reflection.BindingFlags,System.Reflection.Binder,object[],System.Globalization.CultureInfo) 0x00024 at System.Reflection.ConstructorInfo.Invoke (object[]) 0x00042 at System.Activator.CreateInstance (System.Type,bool) 0x001d3 at System.Activator.CreateInstance (System.Type) 0x00013 at Sync.ConfigurationSection.get_Configuration () 0x00043 at Sync.Configuration.LoadFromXML (string) 0x000cf at Sync.Configuration.get_Default () 0x0005f at Sync.Mac.AppDelegate..ctor () 0x00037 at (wrapper dynamic-method) object.f57e4aeb-6b60-4541-bc56-c7326f76297f (intptr,MonoMac.ObjCRuntime.Selector) 0x00057 at (wrapper native-to-managed) object.f57e4aeb-6b60-4541-bc56-c7326f76297f (intptr,MonoMac.ObjCRuntime.Selector) 0x0006f at (wrapper managed-to-native) MonoMac.AppKit.NSApplication.NSApplicationMain (int,string[]) 0x3 at MonoMac.AppKit.NSApplication.Main (string[]) 0x0003f at Sync.Mac.MainClass.Main (string[]) 0x000e7 - Maurício Linhares http://techbot.me/ - http://twitter.com/#!/mauriciojr On Thu, Nov 1, 2012 at 5:23 PM, Rodrigo Kumpera kump...@gmail.com mailto:kump...@gmail.com wrote: Run with --debug On Thu, Nov 1, 2012 at 5:06 PM, Maurício Linhares mauricio.linha...@gmail.com mailto:mauricio.linha...@gmail.com wrote: I'm most likely doing something really stupid here, but I can't find a way to get line numbers on my stack traces. I have manually added the .mdb files to the Contents/MonoBundle folder (so they're at the same folder as the DLLs) but still can't get it to work. Am I missing something here? - Maurício Linhares http://techbot.me/ - http://twitter.com/#!/mauriciojr ___ Mono-list maillist - Mono-list@lists.ximian.com mailto:Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list ___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list ___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list
Re: [Mono-list] How can I get line numbers on MonoMac app stack traces?
No, It's MONO_ENV_OPTIONS. On Fri, Nov 2, 2012 at 7:50 AM, Andres G. Aragoneses kno...@gmail.comwrote: Should be MONO_OPTIONS, not MONO_ENV_OPTIONS, right? On 01/11/12 21:29, Maurício Linhares wrote: No deal: ➜ winclient git:(develop) ✗ export MONO_ENV_OPTIONS=--debug ➜ winclient git:(develop) ✗ ./Sync.app/Contents/MacOS/Sync Unhandled Exception: System.Reflection.**TargetInvocationException: Exception has been thrown by the target of an invocation. --- System.Exception: I am going to crash now. at Sync.MacConfiguration..ctor (System.String destinationPath, IDatabasePathGenerator pathGenerator) [0x0] in filename unknown:0 at Sync.MacConfiguration..ctor () [0x0] in filename unknown:0 at (wrapper managed-to-native) System.Reflection.MonoCMethod:**InternalInvoke (System.Reflection.**MonoCMethod,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) [0x0] in filename unknown:0 --- End of inner exception stack trace --- at System.Reflection.MonoCMethod.**Invoke (object,System.Reflection.**BindingFlags,System.** Reflection.Binder,object[],**System.Globalization.**CultureInfo) 0x001f3 at System.Reflection.MonoCMethod.**Invoke (System.Reflection.**BindingFlags,System.**Reflection.Binder,object[],** System.Globalization.**CultureInfo) 0x00024 at System.Reflection.**ConstructorInfo.Invoke (object[]) 0x00042 at System.Activator.**CreateInstance (System.Type,bool) 0x001d3 at System.Activator.**CreateInstance (System.Type) 0x00013 at Sync.ConfigurationSection.get_**Configuration () 0x00043 at Sync.Configuration.LoadFromXML (string) 0x000cf at Sync.Configuration.get_Default () 0x0005f at Sync.Mac.AppDelegate..ctor () 0x00037 at (wrapper dynamic-method) object.f57e4aeb-6b60-4541-**bc56-c7326f76297f (intptr,MonoMac.ObjCRuntime.**Selector) 0x00057 at (wrapper native-to-managed) object.f57e4aeb-6b60-4541-**bc56-c7326f76297f (intptr,MonoMac.ObjCRuntime.**Selector) 0x0006f at (wrapper managed-to-native) MonoMac.AppKit.NSApplication.**NSApplicationMain (int,string[]) 0x3 at MonoMac.AppKit.NSApplication.**Main (string[]) 0x0003f at Sync.Mac.MainClass.Main (string[]) 0x000e7 - Maurício Linhares http://techbot.me/ - http://twitter.com/#!/**mauriciojrhttp://twitter.com/#!/mauriciojr On Thu, Nov 1, 2012 at 5:23 PM, Rodrigo Kumpera kump...@gmail.com mailto:kump...@gmail.com wrote: Run with --debug On Thu, Nov 1, 2012 at 5:06 PM, Maurício Linhares mauricio.linha...@gmail.com mailto:mauricio.linhares@**gmail.commauricio.linha...@gmail.com wrote: I'm most likely doing something really stupid here, but I can't find a way to get line numbers on my stack traces. I have manually added the .mdb files to the Contents/MonoBundle folder (so they're at the same folder as the DLLs) but still can't get it to work. Am I missing something here? - Maurício Linhares http://techbot.me/ - http://twitter.com/#!/**mauriciojrhttp://twitter.com/#!/mauriciojr __**_ Mono-list maillist - Mono-list@lists.ximian.com mailto:Mono-list@lists.**ximian.com Mono-list@lists.ximian.com http://lists.ximian.com/**mailman/listinfo/mono-listhttp://lists.ximian.com/mailman/listinfo/mono-list __**_ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/**mailman/listinfo/mono-listhttp://lists.ximian.com/mailman/listinfo/mono-list __**_ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/**mailman/listinfo/mono-listhttp://lists.ximian.com/mailman/listinfo/mono-list ___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list
Re: [Mono-list] How can I get line numbers on MonoMac app stack traces?
Strangely enough, I've used MONO_OPTIONS in the past and it works too. On 02/11/12 15:15, Rodrigo Kumpera wrote: No, It's MONO_ENV_OPTIONS. On Fri, Nov 2, 2012 at 7:50 AM, Andres G. Aragoneses kno...@gmail.com mailto:kno...@gmail.com wrote: Should be MONO_OPTIONS, not MONO_ENV_OPTIONS, right? On 01/11/12 21:29, Maurício Linhares wrote: No deal: ➜ winclient git:(develop) ✗ export MONO_ENV_OPTIONS=--debug ➜ winclient git:(develop) ✗ ./Sync.app/Contents/MacOS/Sync Unhandled Exception: System.Reflection.__TargetInvocationException: Exception has been thrown by the target of an invocation. --- System.Exception: I am going to crash now. at Sync.MacConfiguration..ctor (System.String destinationPath, IDatabasePathGenerator pathGenerator) [0x0] in filename unknown:0 at Sync.MacConfiguration..ctor () [0x0] in filename unknown:0 at (wrapper managed-to-native) System.Reflection.MonoCMethod:__InternalInvoke (System.Reflection.__MonoCMethod,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) [0x0] in filename unknown:0 --- End of inner exception stack trace --- at System.Reflection.MonoCMethod.__Invoke (object,System.Reflection.__BindingFlags,System.__Reflection.Binder,object[],__System.Globalization.__CultureInfo) 0x001f3 at System.Reflection.MonoCMethod.__Invoke (System.Reflection.__BindingFlags,System.__Reflection.Binder,object[],__System.Globalization.__CultureInfo) 0x00024 at System.Reflection.__ConstructorInfo.Invoke (object[]) 0x00042 at System.Activator.__CreateInstance (System.Type,bool) 0x001d3 at System.Activator.__CreateInstance (System.Type) 0x00013 at Sync.ConfigurationSection.get___Configuration () 0x00043 at Sync.Configuration.LoadFromXML (string) 0x000cf at Sync.Configuration.get_Default () 0x0005f at Sync.Mac.AppDelegate..ctor () 0x00037 at (wrapper dynamic-method) object.f57e4aeb-6b60-4541-__bc56-c7326f76297f (intptr,MonoMac.ObjCRuntime.__Selector) 0x00057 at (wrapper native-to-managed) object.f57e4aeb-6b60-4541-__bc56-c7326f76297f (intptr,MonoMac.ObjCRuntime.__Selector) 0x0006f at (wrapper managed-to-native) MonoMac.AppKit.NSApplication.__NSApplicationMain (int,string[]) 0x3 at MonoMac.AppKit.NSApplication.__Main (string[]) 0x0003f at Sync.Mac.MainClass.Main (string[]) 0x000e7 - Maurício Linhares http://techbot.me/ - http://twitter.com/#!/__mauriciojr http://twitter.com/#!/mauriciojr On Thu, Nov 1, 2012 at 5:23 PM, Rodrigo Kumpera kump...@gmail.com mailto:kump...@gmail.com mailto:kump...@gmail.com mailto:kump...@gmail.com wrote: Run with --debug On Thu, Nov 1, 2012 at 5:06 PM, Maurício Linhares mauricio.linha...@gmail.com mailto:mauricio.linha...@gmail.com mailto:mauricio.linhares@__gmail.com mailto:mauricio.linha...@gmail.com wrote: I'm most likely doing something really stupid here, but I can't find a way to get line numbers on my stack traces. I have manually added the .mdb files to the Contents/MonoBundle folder (so they're at the same folder as the DLLs) but still can't get it to work. Am I missing something here? - Maurício Linhares http://techbot.me/ - http://twitter.com/#!/__mauriciojr http://twitter.com/#!/mauriciojr _ Mono-list maillist - Mono-list@lists.ximian.com mailto:Mono-list@lists.ximian.com mailto:Mono-list@lists.__ximian.com mailto:Mono-list@lists.ximian.com http://lists.ximian.com/__mailman/listinfo/mono-list http://lists.ximian.com/mailman/listinfo/mono-list _ Mono-list maillist - Mono-list@lists.ximian.com mailto:Mono-list@lists.ximian.com http://lists.ximian.com/__mailman/listinfo/mono-list http://lists.ximian.com/mailman/listinfo/mono-list _ Mono-list maillist - Mono-list@lists.ximian.com mailto:Mono-list@lists.ximian.com http://lists.ximian.com/__mailman/listinfo/mono-list http://lists.ximian.com/mailman/listinfo/mono-list ___ Mono-list maillist -
Re: [Mono-list] How can I get line numbers on MonoMac app stack traces?
As discussed in IRC, MONO_OPTIONS usually works because it's the standard used by some mono scripts such as xsp. D'oh! On 02/11/12 17:00, Andres G. Aragoneses wrote: Strangely enough, I've used MONO_OPTIONS in the past and it works too. On 02/11/12 15:15, Rodrigo Kumpera wrote: No, It's MONO_ENV_OPTIONS. On Fri, Nov 2, 2012 at 7:50 AM, Andres G. Aragoneses kno...@gmail.com mailto:kno...@gmail.com wrote: Should be MONO_OPTIONS, not MONO_ENV_OPTIONS, right? On 01/11/12 21:29, Maurício Linhares wrote: No deal: ➜ winclient git:(develop) ✗ export MONO_ENV_OPTIONS=--debug ➜ winclient git:(develop) ✗ ./Sync.app/Contents/MacOS/Sync Unhandled Exception: System.Reflection.__TargetInvocationException: Exception has been thrown by the target of an invocation. --- System.Exception: I am going to crash now. at Sync.MacConfiguration..ctor (System.String destinationPath, IDatabasePathGenerator pathGenerator) [0x0] in filename unknown:0 at Sync.MacConfiguration..ctor () [0x0] in filename unknown:0 at (wrapper managed-to-native) System.Reflection.MonoCMethod:__InternalInvoke (System.Reflection.__MonoCMethod,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) [0x0] in filename unknown:0 --- End of inner exception stack trace --- at System.Reflection.MonoCMethod.__Invoke (object,System.Reflection.__BindingFlags,System.__Reflection.Binder,object[],__System.Globalization.__CultureInfo) 0x001f3 at System.Reflection.MonoCMethod.__Invoke (System.Reflection.__BindingFlags,System.__Reflection.Binder,object[],__System.Globalization.__CultureInfo) 0x00024 at System.Reflection.__ConstructorInfo.Invoke (object[]) 0x00042 at System.Activator.__CreateInstance (System.Type,bool) 0x001d3 at System.Activator.__CreateInstance (System.Type) 0x00013 at Sync.ConfigurationSection.get___Configuration () 0x00043 at Sync.Configuration.LoadFromXML (string) 0x000cf at Sync.Configuration.get_Default () 0x0005f at Sync.Mac.AppDelegate..ctor () 0x00037 at (wrapper dynamic-method) object.f57e4aeb-6b60-4541-__bc56-c7326f76297f (intptr,MonoMac.ObjCRuntime.__Selector) 0x00057 at (wrapper native-to-managed) object.f57e4aeb-6b60-4541-__bc56-c7326f76297f (intptr,MonoMac.ObjCRuntime.__Selector) 0x0006f at (wrapper managed-to-native) MonoMac.AppKit.NSApplication.__NSApplicationMain (int,string[]) 0x3 at MonoMac.AppKit.NSApplication.__Main (string[]) 0x0003f at Sync.Mac.MainClass.Main (string[]) 0x000e7 - Maurício Linhares http://techbot.me/ - http://twitter.com/#!/__mauriciojr http://twitter.com/#!/mauriciojr On Thu, Nov 1, 2012 at 5:23 PM, Rodrigo Kumpera kump...@gmail.com mailto:kump...@gmail.com mailto:kump...@gmail.com mailto:kump...@gmail.com wrote: Run with --debug On Thu, Nov 1, 2012 at 5:06 PM, Maurício Linhares mauricio.linha...@gmail.com mailto:mauricio.linha...@gmail.com mailto:mauricio.linhares@__gmail.com mailto:mauricio.linha...@gmail.com wrote: I'm most likely doing something really stupid here, but I can't find a way to get line numbers on my stack traces. I have manually added the .mdb files to the Contents/MonoBundle folder (so they're at the same folder as the DLLs) but still can't get it to work. Am I missing something here? - Maurício Linhares http://techbot.me/ - http://twitter.com/#!/__mauriciojr http://twitter.com/#!/mauriciojr _ Mono-list maillist - Mono-list@lists.ximian.com mailto:Mono-list@lists.ximian.com mailto:Mono-list@lists.__ximian.com mailto:Mono-list@lists.ximian.com http://lists.ximian.com/__mailman/listinfo/mono-list http://lists.ximian.com/mailman/listinfo/mono-list _ Mono-list maillist - Mono-list@lists.ximian.com mailto:Mono-list@lists.ximian.com http://lists.ximian.com/__mailman/listinfo/mono-list http://lists.ximian.com/mailman/listinfo/mono-list _ Mono-list maillist - Mono-list@lists.ximian.com mailto:Mono-list@lists.ximian.com
Re: [Mono-list] How can I get line numbers on MonoMac app stack traces?
Tried that, didn't work ;( Looks like there is no way for me to have useful stack traces in C#. Not sure why someone would purposely make this to stack traces, the line number information is the most important information available. - Maurício Linhares http://techbot.me/ - http://twitter.com/#!/mauriciojr On Fri, Nov 2, 2012 at 1:57 PM, Andres G. Aragoneses kno...@gmail.comwrote: As discussed in IRC, MONO_OPTIONS usually works because it's the standard used by some mono scripts such as xsp. D'oh! ___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list
Re: [Mono-list] How can I get line numbers on MonoMac app stack traces?
Run with --debug On Thu, Nov 1, 2012 at 5:06 PM, Maurício Linhares mauricio.linha...@gmail.com wrote: I'm most likely doing something really stupid here, but I can't find a way to get line numbers on my stack traces. I have manually added the .mdb files to the Contents/MonoBundle folder (so they're at the same folder as the DLLs) but still can't get it to work. Am I missing something here? - Maurício Linhares http://techbot.me/ - http://twitter.com/#!/mauriciojr ___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list ___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list
Re: [Mono-list] How can I get line numbers on MonoMac app stack traces?
No deal: ➜ winclient git:(develop) ✗ export MONO_ENV_OPTIONS=--debug ➜ winclient git:(develop) ✗ ./Sync.app/Contents/MacOS/Sync Unhandled Exception: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. --- System.Exception: I am going to crash now. at Sync.MacConfiguration..ctor (System.String destinationPath, IDatabasePathGenerator pathGenerator) [0x0] in filename unknown:0 at Sync.MacConfiguration..ctor () [0x0] in filename unknown:0 at (wrapper managed-to-native) System.Reflection.MonoCMethod:InternalInvoke (System.Reflection.MonoCMethod,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) [0x0] in filename unknown:0 --- End of inner exception stack trace --- at System.Reflection.MonoCMethod.Invoke (object,System.Reflection.BindingFlags,System.Reflection.Binder,object[],System.Globalization.CultureInfo) 0x001f3 at System.Reflection.MonoCMethod.Invoke (System.Reflection.BindingFlags,System.Reflection.Binder,object[],System.Globalization.CultureInfo) 0x00024 at System.Reflection.ConstructorInfo.Invoke (object[]) 0x00042 at System.Activator.CreateInstance (System.Type,bool) 0x001d3 at System.Activator.CreateInstance (System.Type) 0x00013 at Sync.ConfigurationSection.get_Configuration () 0x00043 at Sync.Configuration.LoadFromXML (string) 0x000cf at Sync.Configuration.get_Default () 0x0005f at Sync.Mac.AppDelegate..ctor () 0x00037 at (wrapper dynamic-method) object.f57e4aeb-6b60-4541-bc56-c7326f76297f (intptr,MonoMac.ObjCRuntime.Selector) 0x00057 at (wrapper native-to-managed) object.f57e4aeb-6b60-4541-bc56-c7326f76297f (intptr,MonoMac.ObjCRuntime.Selector) 0x0006f at (wrapper managed-to-native) MonoMac.AppKit.NSApplication.NSApplicationMain (int,string[]) 0x3 at MonoMac.AppKit.NSApplication.Main (string[]) 0x0003f at Sync.Mac.MainClass.Main (string[]) 0x000e7 - Maurício Linhares http://techbot.me/ - http://twitter.com/#!/mauriciojr On Thu, Nov 1, 2012 at 5:23 PM, Rodrigo Kumpera kump...@gmail.com wrote: Run with --debug On Thu, Nov 1, 2012 at 5:06 PM, Maurício Linhares mauricio.linha...@gmail.com wrote: I'm most likely doing something really stupid here, but I can't find a way to get line numbers on my stack traces. I have manually added the .mdb files to the Contents/MonoBundle folder (so they're at the same folder as the DLLs) but still can't get it to work. Am I missing something here? - Maurício Linhares http://techbot.me/ - http://twitter.com/#!/mauriciojr ___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list ___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list
Re: [Mono-list] How can I copy one drawable into another?
Hi Francisco, If you have a png on disk, this is done like so: void PaintImage( Context ctx, ImageSurface img, int x, int y ){ img.Show( ctx, x, y ); } ... ImageSurface image = new ImageSurface( filename ); PaintImage( ctx, image, 10, 20 ); If you have a Gtk.Image and want to turn it into a Cairo ImageSurface then you at the moment have to do something horrible like this: Gtk.Image myImage; ... Gdk.PixBuf buf = myImage.PixBuf; buf.Save( temp_convert,png ); ImageSurface image = new ImageSurface ( temp_convert ); Regards Ian On Tue, 2010-11-16 at 19:29 +, Francisco M. Marzoa wrote: Hello, I've a Gtk.Image widget with a given content and I just want to copy that content within a Gtk.DrawingArea, is this possible in an easy manner? Thanks in advance, ___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list ___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list
Re: [Mono-list] How can I copy one drawable into another?
Once you have it in a PixBuf, just paint it onto your ImageSurface: using (Cairo.Context g = new Cairo.Context (mySurface)) { g.DrawPixbuf (mypixbuf, new Cairo.Point (0, 0)); } Jonathan On 11/16/2010 2:28 PM, Ian Norton wrote: Hi Francisco, If you have a png on disk, this is done like so: void PaintImage( Context ctx, ImageSurface img, int x, int y ){ img.Show( ctx, x, y ); } ... ImageSurface image = new ImageSurface( filename ); PaintImage( ctx, image, 10, 20 ); If you have a Gtk.Image and want to turn it into a Cairo ImageSurface then you at the moment have to do something horrible like this: Gtk.Image myImage; ... Gdk.PixBuf buf = myImage.PixBuf; buf.Save( temp_convert,png ); ImageSurface image = new ImageSurface ( temp_convert ); Regards Ian On Tue, 2010-11-16 at 19:29 +, Francisco M. Marzoa wrote: Hello, I've a Gtk.Image widget with a given content and I just want to copy that content within a Gtk.DrawingArea, is this possible in an easy manner? Thanks in advance, ___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list ___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list ___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list
Re: [Mono-list] How can I copy one drawable into another?
On Tue, 2010-11-16 at 20:43 +, Jonathan Pobst wrote: Once you have it in a PixBuf, just paint it onto your ImageSurface: using (Cairo.Context g = new Cairo.Context (mySurface)) { g.DrawPixbuf (mypixbuf, new Cairo.Point (0, 0)); } Ooh, handy. Perhaps someone needs to update http://www.mono-project.com/Mono.Cairo_Cookbook. Regards Ian Jonathan On 11/16/2010 2:28 PM, Ian Norton wrote: Hi Francisco, If you have a png on disk, this is done like so: void PaintImage( Context ctx, ImageSurface img, int x, int y ){ img.Show( ctx, x, y ); } ... ImageSurface image = new ImageSurface( filename ); PaintImage( ctx, image, 10, 20 ); If you have a Gtk.Image and want to turn it into a Cairo ImageSurface then you at the moment have to do something horrible like this: Gtk.Image myImage; ... Gdk.PixBuf buf = myImage.PixBuf; buf.Save( temp_convert,png ); ImageSurface image = new ImageSurface ( temp_convert ); Regards Ian On Tue, 2010-11-16 at 19:29 +, Francisco M. Marzoa wrote: Hello, I've a Gtk.Image widget with a given content and I just want to copy that content within a Gtk.DrawingArea, is this possible in an easy manner? Thanks in advance, ___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list ___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list ___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list
Re: [Mono-list] How can I copy one drawable into another?
Whoops, I guess that was an extension method I wrote: public static void DrawPixbuf (this Context g, Gdk.Pixbuf pixbuf, Point dest) { g.Save (); Gdk.CairoHelper.SetSourcePixbuf (g, pixbuf, dest.X, dest.Y); g.Paint (); g.Restore (); } Jonathan On 11/16/2010 5:09 PM, Francisco M. Marzoa wrote: Hello, Hmmm... My Cairo.Context seems to not have a DrawPixbuf function :-/ Regards, El 16/11/10 21:43, Jonathan Pobst escribió: Once you have it in a PixBuf, just paint it onto your ImageSurface: using (Cairo.Context g = new Cairo.Context (mySurface)) { g.DrawPixbuf (mypixbuf, new Cairo.Point (0, 0)); } Jonathan ___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list
Re: [Mono-list] How can I add GTK# to my jailed Mono 2.6.1 development environment on Ubuntu?
I used this script also and couldn't make SQLite to work. It aways says Cannot open database, while the exactly same code on Suse Live CD works fine =\ Why must Linux be so a pain in the ***? . On Mon, Mar 1, 2010 at 8:44 PM, Joe Hillenbrand joehil...@gmail.com wrote: I created a jailed Mono 2.6.1 development environment in /opt/mono-2.6 on Ubuntu 9.10 using this guide and script, http://patrick.qmtech.net/blog/?p=14 The problem is that I can't build any GTK# applications using this environment. How can I added GTK# to it using a similar method? Thank you for the help. -Joe Hillenbrand ___ Mono-list maillist - mono-l...@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list -- [] Júlio César Ködel G. Você pode ficar sem comer durante 3 dias, sem beber durante 2 dias, mas não pode ficar sem respirar por mais de 5 minutos. Então, antes de imprimir isso, lembre-se que o oxigênio deste planeta vem da árvore morta para fazer o papel que irá utilizar. ___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list
Re: [Mono-list] how can I tranfer files by FTP using mono
On Tue, 2009-11-10 at 22:12 -0800, Bharti Mishra wrote: Hi, I am migrating a vb.net project onto open suse through mono2.4.3. In my project there is a functionality through which we upload a text file and we transfer this file onto database. for FTP transfer now we are using vsdll.dll. it is default .net dll, which has already defined function to transer a file through ftp. when scan this dll through MoMA Analyser, it is showing dll not in proper format. I like to know how mono will support this concept or give some suggestion how can I implement this functionality on linux through mono. Use .NET's own System.Net.WebClient or System.Net.FtpWebRequest. -Gonzalo ___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list
Re: [Mono-list] how can I tranfer files by FTP using mono
Something like this should work fine. I remember using similar code for a project using mono. http://www.codeproject.com/KB/IP/FtpClient.aspx Thanks, David. On Tue, Nov 10, 2009 at 11:12 PM, Bharti Mishra bharti...@tcs.com wrote: Hi, I am migrating a vb.net project onto open suse through mono2.4.3. In my project there is a functionality through which we upload a text file and we transfer this file onto database. for FTP transfer now we are using vsdll.dll. it is default .net dll, which has already defined function to transer a file through ftp. when scan this dll through MoMA Analyser, it is showing dll not in proper format. I like to know how mono will support this concept or give some suggestion how can I implement this functionality on linux through mono. thanks -- View this message in context: http://old.nabble.com/how-can-I-tranfer-files-by-FTP-using-mono-tp26296602p26296602.html Sent from the Mono - General mailing list archive at Nabble.com. ___ Mono-list maillist - mono-l...@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list ___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list
Re: [Mono-list] how can i make the dht work in monotorrent/bitshar
i need to forward the port 12345 ? this port dht uses? or the port the same with bitsharo connects? Alan McGovern-2 wrote: Yes, that should be all you have to do to activate DHT. Also make sure that you have forwarded the correct ports. If you use monotorrent at port 12345, you need to forward 12345 in both UDP and TCP. DHT requires the UDP port. Alan. On Sat, Feb 7, 2009 at 10:00 PM, Angarato Surion angarato.sur...@gmail.comwrote: how can i make the dht work in monotorrent/bitsharp ? only from enigne.dhtengine.start(); ? -- View this message in context: http://www.nabble.com/how-can-i-make-the-dht-work-in-monotorrent-bitshar-tp21892122p21892122.html Sent from the Mono - General mailing list archive at Nabble.com. ___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list ___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list -- View this message in context: http://www.nabble.com/how-can-i-make-the-dht-work-in-monotorrent-bitshar-tp21892122p21922684.html Sent from the Mono - General mailing list archive at Nabble.com. ___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list
Re: [Mono-list] how can i make the dht work in monotorrent/bitshar
I was using 12345 as an example. Whatever port you use in your application, you need to forward it in both UDP and TCP on your router. Alan. On Mon, Feb 9, 2009 at 9:44 PM, Angarato Surion angarato.sur...@gmail.comwrote: i need to forward the port 12345 ? this port dht uses? or the port the same with bitsharo connects? Alan McGovern-2 wrote: Yes, that should be all you have to do to activate DHT. Also make sure that you have forwarded the correct ports. If you use monotorrent at port 12345, you need to forward 12345 in both UDP and TCP. DHT requires the UDP port. Alan. On Sat, Feb 7, 2009 at 10:00 PM, Angarato Surion angarato.sur...@gmail.comwrote: how can i make the dht work in monotorrent/bitsharp ? only from enigne.dhtengine.start(); ? -- View this message in context: http://www.nabble.com/how-can-i-make-the-dht-work-in-monotorrent-bitshar-tp21892122p21892122.html Sent from the Mono - General mailing list archive at Nabble.com. ___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list ___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list -- View this message in context: http://www.nabble.com/how-can-i-make-the-dht-work-in-monotorrent-bitshar-tp21892122p21922684.html Sent from the Mono - General mailing list archive at Nabble.com. ___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list ___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list
Re: [Mono-list] how can i make the dht work in monotorrent/bitshar
Yes, that should be all you have to do to activate DHT. Also make sure that you have forwarded the correct ports. If you use monotorrent at port 12345, you need to forward 12345 in both UDP and TCP. DHT requires the UDP port. Alan. On Sat, Feb 7, 2009 at 10:00 PM, Angarato Surion angarato.sur...@gmail.comwrote: how can i make the dht work in monotorrent/bitsharp ? only from enigne.dhtengine.start(); ? -- View this message in context: http://www.nabble.com/how-can-i-make-the-dht-work-in-monotorrent-bitshar-tp21892122p21892122.html Sent from the Mono - General mailing list archive at Nabble.com. ___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list ___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list
Re: [Mono-list] How can I create an account to contribute to Mono?
You can't create an account there. It isn't an open wiki. If you want to contribute to the website, write up what you want on your own system and then post it here. For mono patches, read the contributing guidelines on the mono-project site. Alan. On 12/23/06, 超陆 [EMAIL PROTECTED] wrote: At page Create an account or log in, there is no form for me to create an account, Is there something wrong? Thanks. ___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list ___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list
RE: [Mono-list] How can I . . .
Hi Eric, I need to be able to detect when my ISP has changed my cable modem's IP address. One complicating factor is that I'm behind a linksys router and am running NAT on my internal network. Have a look at this GotDotNet User Sample: Asynchronous Trace Route (tracert) in C# The link is: http://www.dotnet247.com/247reference/a.aspx?u=http://www.gotdotnet.com/Comm unity/UserSamples/Details.aspx?SampleGuid=f0144b0a-cfa8-41e7-9377-d556cd1ebc 6c because you know your internal subnet you should be able to detect your router external IP as soon as it changes while running the tracert. I have not tested the code with mono, but this should work. Let me know if it works for you. Regards Chris ___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list
Re: [Mono-list] how can i start with clicking?
Hi, On Mon, 2004-12-06 at 09:57, caner Sahan wrote: Hi; When we write a program with mono,we are using console to start for .exe .But i don't want to start my .exe file from console.How can i solve this problem?Is it possible? click and start?windows or linux not matter? In Linux: The best approach to deal with it in Linux is to create shell script wrappers like those that exist for mcs/mbas/etc. in mono. These are clickable to run. Another way is to use binfmt kernel support to map .exe files to be executed with mono (will render wine useless, unless someone has coded a smarter selector that see if it is a managed exe or not and calls wine or mono as needed). In Windows: With .NET runtime, they are fully clickable, but should be compiled as winexe not to open a console window. If you have only mono installed in windows, you need to do .bat wrappers, as we don't implement a native mscoree.dll or something similar to start mono automatically for managed exes. Regards Caner ÞAHAN www.csharpnedir.com (One of the best .NET webside in Turkey about Mono) Hope it helps, -- Rafael Monoman Teixeira Mono Hacker since 16 Jul 2001 - http://www.go-mono.org/ Mono Brasil Founding Member - http://monobrasil.redesolbrasil.org/ English Blog: http://monoblog.blogspot.com/ Brazilian Portuguese Blog: http://monoblog.weblogger.terra.com.br/ ___ Mono-list maillist - [EMAIL PROTECTED] http://lists.ximian.com/mailman/listinfo/mono-list