[Mono-dev] Error handling longs on Mono SPARC
Hi there, This is our configuration: -bash-3.00$ uname -a SunOS atenea 5.11 snv_34 sun4u sparc SUNW,Sun-Blade-1000 -bash-3.00$ mono --version Mono JIT compiler version 20091021 (tarball Wed Oct 21 19:04:28 CEST 2009) Copyright (C) 2002-2009 Novell, Inc and Contributors. www.mono-project.com TLS: normal GC:Included Boehm (with typed GC and Parallel Mark) SIGSEGV: normal Notification: Thread + polling Architecture: sparc Disabled: none We're using a Mono 2.6 compiled at our test box. We've a code like this: long dstBrId = GetBranchNumber(brId); log.DebugFormat(Branch {0} - {1}, brId, dstBrId); Calling this method: private long GetBranchNumber(long brId) { Branch br = (Branch) mFetchBranches[brId]; if( br != null ) { return br.ObjId; } log.DebugFormat(GetBranchNumber returning {0}, brId); return brId; } And that's the log it is showing: - GetBranchNumber returning 4 - Branch 4 - 17179869188 It looks like, for some reason, this 4 is magically becoming a 17179869188!! 17179869188 is - 40004 in hex And, it *gets fixed by building disabling the optimize mode* Of course, a test app like this: using System; class Hello { public static void Main() { Hello t = new Hello(); long myval = 4; long longVal = t.GetValue(myval); Console.WriteLine(longVal); } private long GetValue(long v) { return v; } } Does not fail. Any idea? Thanks, pablo ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list
Re: [Mono-dev] Error handling longs on Mono SPARC
Hi, Is this the 2.6 prerelease, or using the code from the mono-2-6 branch ? The latter has some sparc fixes. Zoltan On Mon, Oct 26, 2009 at 1:11 PM, pablosantosl...@terra.es pablosantosl...@terra.es wrote: Hi there, This is our configuration: -bash-3.00$ uname -a SunOS atenea 5.11 snv_34 sun4u sparc SUNW,Sun-Blade-1000 -bash-3.00$ mono --version Mono JIT compiler version 20091021 (tarball Wed Oct 21 19:04:28 CEST 2009) Copyright (C) 2002-2009 Novell, Inc and Contributors. www.mono-project.com TLS: normal GC:Included Boehm (with typed GC and Parallel Mark) SIGSEGV: normal Notification: Thread + polling Architecture: sparc Disabled: none We're using a Mono 2.6 compiled at our test box. We've a code like this: long dstBrId = GetBranchNumber(brId); log.DebugFormat(Branch {0} - {1}, brId, dstBrId); Calling this method: private long GetBranchNumber(long brId) { Branch br = (Branch) mFetchBranches[brId]; if( br != null ) { return br.ObjId; } log.DebugFormat(GetBranchNumber returning {0}, brId); return brId; } And that's the log it is showing: - GetBranchNumber returning 4 - Branch 4 - 17179869188 It looks like, for some reason, this 4 is magically becoming a 17179869188!! 17179869188 is - 40004 in hex And, it *gets fixed by building disabling the optimize mode* Of course, a test app like this: using System; class Hello { public static void Main() { Hello t = new Hello(); long myval = 4; long longVal = t.GetValue(myval); Console.WriteLine(longVal); } private long GetValue(long v) { return v; } } Does not fail. Any idea? Thanks, pablo ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list
Re: [Mono-dev] Error handling longs on Mono SPARC
Hi Zoltan, It's the daily tarball (the date is in the version string) which I believe is svn trunk. pablo Zoltan Varga wrote: Hi, Is this the 2.6 prerelease, or using the code from the mono-2-6 branch ? The latter has some sparc fixes. Zoltan On Mon, Oct 26, 2009 at 1:11 PM, pablosantosl...@terra.es mailto:pablosantosl...@terra.es pablosantosl...@terra.es mailto:pablosantosl...@terra.es wrote: Hi there, This is our configuration: -bash-3.00$ uname -a SunOS atenea 5.11 snv_34 sun4u sparc SUNW,Sun-Blade-1000 -bash-3.00$ mono --version Mono JIT compiler version 20091021 (tarball Wed Oct 21 19:04:28 CEST 2009) Copyright (C) 2002-2009 Novell, Inc and Contributors. www.mono-project.com http://www.mono-project.com TLS: normal GC:Included Boehm (with typed GC and Parallel Mark) SIGSEGV: normal Notification: Thread + polling Architecture: sparc Disabled: none We're using a Mono 2.6 compiled at our test box. We've a code like this: long dstBrId = GetBranchNumber(brId); log.DebugFormat(Branch {0} - {1}, brId, dstBrId); Calling this method: private long GetBranchNumber(long brId) { Branch br = (Branch) mFetchBranches[brId]; if( br != null ) { return br.ObjId; } log.DebugFormat(GetBranchNumber returning {0}, brId); return brId; } And that's the log it is showing: - GetBranchNumber returning 4 - Branch 4 - 17179869188 It looks like, for some reason, this 4 is magically becoming a 17179869188!! 17179869188 is - 40004 in hex And, it *gets fixed by building disabling the optimize mode* Of course, a test app like this: using System; class Hello { public static void Main() { Hello t = new Hello(); long myval = 4; long longVal = t.GetValue(myval); Console.WriteLine(longVal); } private long GetValue(long v) { return v; } } Does not fail. Any idea? Thanks, pablo ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com mailto:Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list
[Mono-dev] Gtk# print preview example.
Hi. Does somebody has an example to do print preview with GTK#?. Any link or doc will be appreciated too. Thanks. ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list
Re: [Mono-dev] Gtk# print preview example.
No problem. Hope it helps. -Original Message- From: cesar avila [mailto:cesar2...@yahoo.com] Sent: Monday, October 26, 2009 6:53 PM To: Vladimir Dimitrov Subject: RE: [Mono-dev] Gtk# print preview example. Thank you very much. I'm downloading the sources to get a look at it. --- On Mon, 10/26/09, Vladimir Dimitrov vlad.dimit...@gmail.com wrote: From: Vladimir Dimitrov vlad.dimit...@gmail.com Subject: RE: [Mono-dev] Gtk# print preview example. To: 'cesar avila' cesar2...@yahoo.com Date: Monday, October 26, 2009, 10:41 AM Hi, I have implemented one for the Warehouse Open project. You can download the product and the sources from here: http://www.microinvest.net/en/?LoadPage=warehouseopen.php - Vladimir -Original Message- From: mono-devel-list-boun...@lists.ximian.com [mailto:mono-devel-list-boun...@lists.ximian.com] On Behalf Of cesar avila Sent: Monday, October 26, 2009 4:58 PM To: mono-devel-list@lists.ximian.com Subject: [Mono-dev] Gtk# print preview example. Hi. Does somebody has an example to do print preview with GTK#?. Any link or doc will be appreciated too. Thanks. ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list
Re: [Mono-list] Scripting with Mono
Hi, You could have a look at Mono.Addins; or scripting languages like Boo, IronPython and IronRuby. I have done some experiments with that, and you can compile a Boo script while running the host program, and execute it afterwards. Works nicely. Regards, Danny -- Product Developer RFID (UHF) Nedap Retail Support e: danny.h...@nedap.com t: +31 544 471568 -Original Message- From: mono-list-boun...@lists.ximian.com [mailto:mono-list-boun...@lists.ximian.com] On Behalf Of eSPiYa Sent: donderdag 22 oktober 2009 5:24 To: mono-list@lists.ximian.com Subject: [Mono-list] Scripting with Mono I'm currently developing an application that enables the clients to extend it through scripting. Primarily what I need is ECMAScript/JavaScript but it is way better to support other languages. I think I don't need to embed Mono runtime in my application 'coz it is running over .NET/Mono. How to achieve this? Thanks. -- View this message in context: http://www.nabble.com/Scripting-with-Mono-tp26003469p26003469.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
[Mono-list] Detecting user inactivity Screensavers
Hi, I need to detect user inactivity in an app that doesn't have the user's focus. It runs in the background and only processes when the user is active. Since I couldn't find any direct API to determine the current state of the screensaver, I thought I'd use P/Invokes to do that. I was using the XCB Screensaver library, with the header file http://xcb.freedesktop.org/manual/screensaver_8h-source.html . I could really use some help on what library to use to detect a screensaver/screen lock but ideally to detect input inactivity. Thanks! Anirudh -- Fifth Year Undergrad - Indian Institute of Technology Kharagpur http://anirudhsanjeev.org ___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list
Re: [Mono-list] Detecting user inactivity Screensavers
On Mon, Oct 26, 2009 at 12:18 PM, Andy a...@ninjagod.com wrote: I need to detect user inactivity in an app that doesn't have the user's focus. It runs in the background and only processes when the user is active. You might try converting the C example given in this thread: http://ubuntuforums.org/showthread.php?t=1252752 -- Chris Howie http://www.chrishowie.com http://en.wikipedia.org/wiki/User:Crazycomputers ___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list
[Mono-list] New Mono Brasil Web Site is on-line www.monobrasil.org
Hello ALL Some news... A Mono Brasil web site retunr on line.. see it on www.monobrasil.org Have fun!!! -- Alessandro Binhara - binh...@monobrasil.org Projeto Brasil http://www.monobrasil.org ___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list
Re: [Mono-list] System.DllNotFoundException, but dll is there.
Lecio wrote: Robert, I did what you said and the 'ldd ./libUFScanner.so' displayed : linux-gate.so.1 = (0xb7f8) libstdc++.so.6 = /usr/lib/libstdc++.so.6 (0xb7e5d000) libm.so.6 = /lib/i686/cmov/libm.so.6 (0xb7e37000) libgcc_s.so.1 = /lib/libgcc_s.so.1 (0xb7e0c000) libc.so.6 = /lib/i686/cmov/libc.so.6 (0xb7cad000) /lib/ld-linux.so.2 (0xb7f81000) Please is there any error above ? Yes, the error is implicit: the library was not properly linked against libusb (See Paolo's answer on this thread). Robert ___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list
Re: [Mono-list] System.DllNotFoundException, but dll is there.
Paolo said me to invoking a function from libsub at start of app. How can I do that in C# to run on Linux ? I'm working with windows VS2008. Do I have to do on windows or Linux ?? Sorry for basics questions. Robert Jordan wrote: Lecio wrote: Robert, I did what you said and the 'ldd ./libUFScanner.so' displayed : linux-gate.so.1 = (0xb7f8) libstdc++.so.6 = /usr/lib/libstdc++.so.6 (0xb7e5d000) libm.so.6 = /lib/i686/cmov/libm.so.6 (0xb7e37000) libgcc_s.so.1 = /lib/libgcc_s.so.1 (0xb7e0c000) libc.so.6 = /lib/i686/cmov/libc.so.6 (0xb7cad000) /lib/ld-linux.so.2 (0xb7f81000) Please is there any error above ? Yes, the error is implicit: the library was not properly linked against libusb (See Paolo's answer on this thread). Robert ___ 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/System.DllNotFoundException%2C-but-dll-is-there.-tp25952202p26071965.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