Re: [Mono-list] .so file not found in /usr/lib

2016-07-06 Thread Jonathan Pryor
On Jul 4, 2016, at 7:24 PM, Daniel Hughes wrote: > I have a library that I am trying to pinvoke to (libsword.so) that is located > in /usr/lib > > This page: http://www.mono-project.com/docs/advanced/pinvoke/ > tells me that /usr/lib is on the search path. > > However when

Re: [Mono-list] (no subject)

2016-04-28 Thread Jonathan Pryor
On Apr 27, 2016, at 2:53 PM, Sharmad Naik wrote: > I have now another system where I have copied the service application build > and running earlier and some of the binaries like mono-service, mono, > libMonoPosixHelper.so, mono-service.exe, Mono.Posix.dll and

Re: [Mono-dev] Cross Platform on Linux/Windows with Mono.Posix reference on Linux

2016-03-30 Thread Jonathan Pryor
On Mar 30, 2016, at 8:33 AM, Alan wrote: > If you package Mono.Posix.dll your app *will crash* on different systems. Not necessarily. > This binary is platform specific and is not safe to copy between OS’s. Mono.Posix.dll *itself* contains no platform-specific code and

Re: [Mono-dev] Unix Signal in mono

2016-02-29 Thread Jonathan Pryor
On Feb 29, 2016, at 8:18 AM, techi eth wrote: > Thanks for quick hint. > We can receive signal by using signal handler using > Mono.Unix.Native.Stdlib.signal. > I am trying to check possibility of sending signal from one process to > another. > > Example : If i have two

Re: [Mono-dev] Class built by mono throws FileNotFoundException when run on windows

2015-09-02 Thread Jonathan Pryor
On Sep 2, 2015, at 9:25 AM, Robert Jordan wrote: > A sane and easy solution is to deploy Mono.Posing on Windows side-by-side > with you app. Just do that — and distribute MonoPosixHelper.dll as well. Parts of Mono.Posix.dll are supported on Windows, e.g.

Re: [Mono-list] Missing Unix inside of Mono

2015-05-20 Thread Jonathan Pryor
On May 20, 2015, at 5:08 AM, Baltasar García Perez-Schofield baltas...@gmail.com wrote: $ sudo apt-get install Pinta ... The following packages have unmet dependencies: pinta : Depends: libmono-posix2.0-cil (= 3.2.3) but it is not going to be installed E: Unable to correct problems, you

Re: [Mono-list] Anyone else missing reply-to?

2015-05-14 Thread Jonathan Pryor
On May 12, 2015, at 2:43 PM, Maury Markowitz maury.markow...@gmail.com wrote: Well my mailer does that, and it’s precisely the wrong behaviour IMHO. Maintaining readable threads requires posts to go back to the group, and if they’re doing that, what’s the purpose of sending it directly to the

Re: [Mono-list] System.IO.Compression

2015-05-10 Thread Jonathan Pryor
On May 8, 2015, at 10:19 AM, Baltasar García Perez-Schofield baltas...@gmail.com wrote: Are there any plans to implement System.IO.Compression? Or maybe that now the library is open-sourced, will it be added to mono any time soon? Which types? DeflateStream has been present since at least

Re: [Mono-list] Question about Mono processor architecture reporting on ARM platforms

2015-01-29 Thread Jonathan Pryor
On Jan 29, 2015, at 3:33 AM, Alex J Lennon ajlen...@dynamicdevices.co.uk wrote: Can anybody advise if this is an implementational issue or if I'm doing something wrong here? You're doing something wrong, *and* there's an implementation issue. Module GetPEKind() returns information about the

Re: [Mono-dev] Mono.Posix Cross Compiling

2015-01-07 Thread Jonathan Pryor
On Jan 5, 2015, at 6:08 PM, Greg Young gregoryyou...@gmail.com wrote: Have anyone used mono.posix or mono.unix.native in a cross compiling scenario where you have to support visual studio builds? How did you handle this? I don't seem to be able to do a platform specific reference. What's the

Re: [Mono-dev] Open source .Net, and TLS 1.1 1.2

2014-12-16 Thread Jonathan Pryor
On Dec 15, 2014, at 6:54 AM, Edward Ned Harvey (mono) edward.harvey.m...@clevertrove.com wrote: I'll look into __MonoCS__ to see if it does what I'm looking for. It is not what you're looking for. __MonoCS__ is defined by the Mono C# compiler (mcs); that's all it means. It doesn't mean that

Re: [Mono-dev] Using .so file in Android Library Project and then using it in an Android App

2014-12-03 Thread Jonathan Pryor
On Dec 2, 2014, at 9:09 AM, Burhan Eyuboglu burhaneyubo...@gmail.com wrote: When I add libcyusb.so, I got this error: libcyusb.so is not a valid ELF executable Where do you get this error from? What's the overall context? I checked the library, libcyusb.so is not ELF, it is a linker, however

Re: [Mono-dev] Mono on Embedded Platform

2014-11-24 Thread Jonathan Pryor
On Nov 23, 2014, at 11:45 PM, techi eth techi...@gmail.com wrote: I would be happy if I will get all running under 10 MB.I have listed approx size of few essential. I am not sure how to reduce get size under 10 MB. Where are you getting these file sizes? Perhaps you need to strip(1) the

Re: [Mono-list] Debug.Assert - a cross-platform issue

2014-11-21 Thread Jonathan Pryor
On Nov 21, 2014, at 7:25 PM, MarLOne infoseeker...@gmail.com wrote: It will be good if these classes and assemblies from Microsoft open-sources are incorporated verbatim into Mono to replace its inconsistent code. This will not be possible, for (at least) three reasons: 1. That code is also

Re: [Mono-dev] Using .so file in Android Library Project and then using it in an Android App

2014-11-18 Thread Jonathan Pryor
On Nov 18, 2014, at 10:05 AM, Burhan Eyuboglu burhaneyubo...@gmail.com wrote: While running my code on an Android Device, it gives that error: This is better asked on forums.xamarin.com... [Mono] DllImport error loading library

Re: [Mono-list] Cross-Platform GUI Tookit

2014-11-18 Thread Jonathan Pryor
On Nov 17, 2014, at 10:55 PM, Edward Ned Harvey (mono) edward.harvey.m...@clevertrove.com wrote: The fact that XS/MD is or was based on Xwt is a good sign based on might be a bit strong. It *uses* Xwt. Most of the current Xamarin Studio/MonoDevelop code is based on Gtk#. *Parts* were done in

Re: [Mono-list] Cross-Platform GUI Tookit

2014-11-18 Thread Jonathan Pryor
On Nov 18, 2014, at 3:33 PM, Daniel Hughes tramps...@gmail.com wrote: Jonathan can you comment on Xamarins plans I can't comment on any plans for the IDEs (or anything else that isn't related to Xamarin.Android), as I don't work on them. I have no idea what they plan on doing. - Jon

Re: [Mono-list] libMonoPosixHelper.dylib?

2014-11-05 Thread Jonathan Pryor
On Nov 5, 2014, at 9:15 AM, Maury Markowitz maury.markow...@gmail.com wrote: The OSX code I'm using will need to reference MonoPosixHelper. Why do you need to reference libMonoPosixHelper.dylib? It has NO STABLE ABI; it is intended for use only from Mono.Posix.dll. However, I cannot find this

Re: [Mono-list] libMonoPosixHelper.dylib?

2014-11-05 Thread Jonathan Pryor
On Nov 5, 2014, at 11:19 AM, Maury Markowitz maury.markow...@gmail.com wrote: unzOpen2 is part of miniunzip, itself part of zlib. The zlib code appears to be in the MPH project essentially/completely unchanged. Of course I also have libz in /usr/lib on every device I'm targeting.

Re: [Mono-list] Consts.cs vs. Consts.cs.in

2014-10-19 Thread Jonathan Pryor
On Oct 16, 2014, at 12:54 PM, Maury Markowitz maury.markow...@gmail.com wrote: 1) Almost all of the projects refer to /System/Consts.cs. I do not have such a file, but I do have Consts.cs.in, which looks a lot like a cs file. I am unfamiliar with .in - is this supposed to be converted into a

Re: [Mono-dev] a set of tests to find out the difference between .Net and Mono implementation

2014-09-16 Thread Jonathan Pryor
On Sep 16, 2014, at 6:10 AM, 何子杰Hzj_jie hzj_...@hotmail.com wrote: 1. GC thought GC.Collect() does not guarantee all the inaccessible objects are finalized and reclaimed, .Net implementation usually be able to delete all the inaccessible objects. impacts, delegate_pinning_test, it make sure

Re: [Mono-list] Java Convert to C#

2014-09-12 Thread Jonathan Pryor
On Sep 12, 2014, at 3:40 AM, mutasim d_muta...@hotmail.com wrote: the difference between Java and C# is the native code That's...one way to think of it, certainly. That's also an oversimplification: before you even get to native code, your compiler needs to emit *something*, and that something

Re: [Mono-list] Java Convert to C#

2014-09-11 Thread Jonathan Pryor
On Sep 11, 2014, at 9:50 AM, mutasim d_muta...@hotmail.com wrote: i convert java code to C# but there is a lot of error the code is connected to C directly the file that been converted : openjdk-7-fcs-src-b147-27 jun 2011 Just offhand...are you aware of the semantic differences between Java

Re: [Mono-dev] New to Mono: Port from iOS to Android Question

2014-09-08 Thread Jonathan Pryor
On Sep 8, 2014, at 1:31 PM, jimscott007 jimscott...@gmail.com wrote: I'm looking to get involved in a project that already has a working iOS app registered with the store and available for download. The next step is to code the Android version of the app and I'm told that the iOS version was

Re: [Mono-dev] OracleClient.Oci and GC

2014-08-26 Thread Jonathan Pryor
On Aug 25, 2014, at 2:05 PM, Neale Ferguson nealefergu...@verizon.net wrote: Do you mean mine not having protected virtual? Dispose(bool) doesn't need to be `protected virtual` unless you plan on supporting inheritance. Rephrased: if your type is sealed, it doesn't need to be `protected

Re: [Mono-dev] OracleClient.Oci and GC

2014-08-25 Thread Jonathan Pryor
Idiomatic IDisposable implementation is slightly different from what you have: http://msdn.microsoft.com/en-us/library/system.idisposable(v=vs.110).aspx On Aug 25, 2014, at 11:08 AM, Neale Ferguson nealefergu...@verizon.net wrote: I implemented a Dispose method for OracleParameter:

Re: [Mono-list] Microsoft open sources the roslyn compiler under the Apache 2.0 License

2014-04-04 Thread Jonathan Pryor
On Apr 3, 2014, at 4:21 PM, Justin Dearing zippy1...@gmail.com wrote: https://roslyn.codeplex.com/ Are there any plans to port rosyln to mono? Miguel demo'd Roslyn running atop Mono/OS X at //build yesterday. I don't think it will be too difficult to port. Also, since this is apache 2.0

Re: [Mono-dev] mono and unmanaged code

2014-03-28 Thread Jonathan Pryor
On Mar 19, 2014, at 12:33 AM, Greg gregorymors...@gmail.com wrote: I believe the calls are failing because the unamanged dll has not been compiled in the native environment. Is this true, or should mono be able to handle unmanaged dlls that were compiled in Windows? Mono does not support

Re: [Mono-dev] Inconsistent value in System.Diagnostics.DefaultTraceListener.AssertUiEnabled

2014-03-20 Thread Jonathan Pryor
On Mar 14, 2014, at 8:42 AM, MarLOne infoseeker...@gmail.com wrote: The function System.Diagnostics.Debug.Assert(bool, string) is not at fault as I have disassembled the Mono code. The fault lies in the property value of *System.Diagnostics.DefaultTraceListener.AssertUiEnabled* which is

Re: [Mono-list] Failing dlopen on Linux via DllImport with error message 'dlopen: invalid caller'

2013-11-25 Thread Jonathan Pryor
On Nov 25, 2013, at 5:47 PM, jean-michel.perr...@csiro.au wrote: [DllImport(libdl)] [return: MarshalAs(UnmanagedType.LPStr)] private static extern string dlerror(); You should (almost?) never use `string` (or any other reference type) as the return type in a P/Invoke method:

Re: [Mono-list] self signed certificate

2013-10-25 Thread Jonathan Pryor
On Oct 24, 2013, at 6:02 PM, Edward Ned Harvey (mono) edward.harvey.m...@clevertrove.com wrote: All the guides out there that I can find tell people to use makecert, which isn't an option. Or use openssl. Why aren't those options? It shouldn't matter how you create the cert, as long as you

Re: [Mono-dev] mdoc update for a non-public types

2013-10-24 Thread Jonathan Pryor
On Oct 24, 2013, at 7:38 AM, xplicit s...@ngs.ru wrote: Can anyone explain is this normal behaviour or not? The primary world view for mdoc is for generating and maintaining external documentation:

Re: [Mono-dev] Removing NET_2_0 define

2013-10-18 Thread Jonathan Pryor
On Oct 16, 2013, at 10:00 AM, Alexander Köplinger alex.koeplin...@outlook.com wrote: Wouldn’t it make sense to remove the #if NET_2_0 checks in the codebase as those are now unnecessary (every profile is now 2.0 or later)? Or are they actually required for something? If not, I’d provide a

Re: [Mono-list] Why Mono developers merged System.ServiceModel.Activation.dll to System.ServiceModel.dll?

2013-09-08 Thread Jonathan Pryor
On Sep 8, 2013, at 3:43 AM, mauzik mau...@centrum.cz wrote: My question is why? Bugs and oversight. .NET does not require that the assembly name match the namespace, and many of the types in the System.ServiceModel.Activation namespace are in the System.ServiceModel.dll assembly, _not_ the

Re: [Mono-list] FtpWebRequest works targeting .net, fails in mono 2.10.9

2013-08-02 Thread Jonathan Pryor
On Jul 30, 2013, at 9:31 AM, MikeN mniem...@oowidgets.com wrote: I have a simple FTP binary file upload, the code works fine in VS and Xamarin As Aaron Oneal asked, what's the error? If it's a UriFormatException, it could be this: https://bugzilla.xamarin.com/show_bug.cgi?id=13343 -

Re: [Mono-list] Can't get a simple shared object to be used - DllNotFoundException

2013-07-30 Thread Jonathan Pryor
On Jul 30, 2013, at 5:34 PM, Stifu st...@free.fr wrote: I've never done that myself, but if I remember correctly, you're not supposed to add the .so part. Just do [DllImport(libshared)]. Close; you should prefer [DllImport(shared)], with one exception. On Windows, this will try to load

Re: [Mono-list] XML Serialization - difference between WinCLR and Mono runtime

2013-07-26 Thread Jonathan Pryor
On Jul 25, 2013, at 9:20 PM, MarLOne infoseeker...@gmail.com wrote: Parden my ignorance in Mono, is there more than one sgen program in Ubuntu Mono? sgen has two different meanings: 1. SGen is Mono's Simple Generational GC, now the default in Mono 3.2. You can explicitly opt-in to using the

Re: [Mono-list] Accessing extension methods via embedded API

2013-07-10 Thread Jonathan Pryor
On Jul 10, 2013, at 11:56 AM, mugginsoft jonat...@mugginsoft.com wrote: I am trying to access a simple extension method in an embedded mono project. Extension methods are C# syntactic sugar to invoke a static method. Extension methods WILL NOT appear as instance methods on the given type, ever,

Re: [Mono-dev] Where can I find GetTargetHandle, etc?

2013-06-21 Thread Jonathan Pryor
On Jun 21, 2013, at 7:42 PM, Dan Barowy m...@ettinsmoor.net wrote: [MethodImplAttribute(MethodImplOptions.InternalCall)] private extern static int GetTargetHandle(object obj, int handle, GCHandleType type); MethodImplOptions.InternalCall means implemented in libmono*.so, so you need to

Re: [Mono-dev] Crash on Android when trying to execute dynamic code

2013-06-17 Thread Jonathan Pryor
Xamarin.Android-related issues should either go to monodr...@lists.xamarin.com [0] or the Android forums [1]. This particular case appears to be a JIT bug; please file a bug at bugzilla [2] with a reproducible test case, ideally with instructions as simple as run the app and watch it crash and

Re: [Mono-list] mkbundle and cross compiling for ARM

2013-06-11 Thread Jonathan Pryor
On Jun 11, 2013, at 10:00 AM, markcoburnwa mcob...@globalscape.com wrote: Thanks, that is helpful to know about. However, according to the mkbundle.cs source file, it defaults to using the linux style and that style matches what is being generated when I run mkbundle. Indeed; I should have

Re: [Mono-list] how to run applications using mono framework instead of .NET framework on windows

2013-06-11 Thread Jonathan Pryor
On Jun 11, 2013, at 5:16 AM, ishmeet ishmeet.bha...@jci.com wrote: Now I want to ensure that when I debug my dll's they run using mono framework and not .NET framework. Is there a way to do that. Use Mono's embedding API to execute your .dll's:

Re: [Mono-list] mkbundle and cross compiling for ARM

2013-06-10 Thread Jonathan Pryor
On Jun 10, 2013, at 7:56 PM, markcoburnwa mcob...@globalscape.com wrote: Unfortunately, I get unrecognized symbol type assembler errors. The problem is that there is not just one style of assembly. There are multiple styles, for varying conventions, in order to appease the default assembler

Re: [Mono-list] ZipArchive?

2013-05-28 Thread Jonathan Pryor
On May 27, 2013, at 1:46 PM, Madsn ma...@theweb.dk wrote: Hi, I had hoped to find the System.IO.Compression.ZipArchive class when using mono .net 4.5, but didn't find it. Will it be supported or are there copyright issues or something? (Or didn't I just look hard enough) That type was

Re: [Mono-dev] Building mono with android ndk standalone toolchain (android ndk r8e)

2013-05-10 Thread Jonathan Pryor
On May 8, 2013, at 4:29 PM, Jeremy Bell bell.jer...@gmail.com wrote: So, it looks like HAVE_SGEN_GC is not defined, but should be? Have I missed a step somewhere? Yes, it should be. From the commit message you mention: The Android NDK/bionic is interesting, in that it's lacking header files

Re: [Mono-dev] Mono documentation

2013-04-29 Thread Jonathan Pryor
On Apr 29, 2013, at 2:10 AM, Александр Шевченко alexandre.shevche...@gmail.com wrote: I have a question about monodoc. I want to create documentation for my library on windows, but it looks like monodoc is utility only for Linux. If it is, how can I create docs on Windows? Grab and extract:

Re: [Mono-dev] EntryPointNotFoundException with __Internal method

2013-04-29 Thread Jonathan Pryor
On Apr 29, 2013, at 3:20 PM, Marcelo Zabani mzab...@gmail.com wrote: When embedding Mono within Nginx, I received the following exception: Unhandled Exception: System.EntryPointNotFoundException: log_error_core_wrapper at (wrapper managed-to-native) Nam.NginxMethods:ngx_log_error

Re: [Mono-dev] Mono-devel-list Digest, Vol 96, Issue 26

2013-04-26 Thread Jonathan Pryor
On Apr 26, 2013, at 9:45 AM, James Bellinger ja...@illusorystudios.com wrote: Other than that it's really very usable. [On Windows, at least.] So on the one platform for which it doesn't use it's own theming and instead uses the platform theming (it uses WinAPI ~directly), it looks good.

Re: [Mono-dev] Mono-devel-list Digest, Vol 96, Issue 26

2013-04-26 Thread Jonathan Pryor
On Apr 26, 2013, at 11:01 AM, James Bellinger ja...@illusorystudios.com wrote: This really suggests WinForms ought to be made to look better on other platforms instead of diffusing the needed effort to end users and forcing them to maintain more code. Arguably true, except: 1. Nobody has

Re: [Mono-dev] Mono-devel-list Digest, Vol 96, Issue 26

2013-04-24 Thread Jonathan Pryor
On Apr 24, 2013, at 8:09 AM, Rauf Butt raufb...@gmail.com wrote: WinForms is specific to Microsoft platform. Additionally, it will require license too. System.Windows.Forms is implemented on Mono. It looks like Windows 95, has rendering issues, and is generally user-hostile, but it DOES

Re: [Mono-list] java parser in C#

2013-04-08 Thread Jonathan Pryor
On Apr 7, 2013, at 6:12 PM, mutasim d_muta...@hotmail.com wrote: in this web site www.java2s.com i can find the JDK source code , the classes can be add as dll files, compiling these files will be all at one time to have full classes without error Which is more or less what IKVM allows.

Re: [Mono-dev] Add openat() etc. to Mono.Posix

2013-03-26 Thread Jonathan Pryor
On Mar 26, 2013, at 9:13 AM, Steffen Kieß s-ki...@web.de wrote: some time ago I submitted a pull request which adds openat() and some other methods to Mono.Posix: https://github.com/mono/mono/pull/221 A related pull request for mono-tools (which is needed for the mono pull request):

Re: [Mono-list] csharp REPL

2013-03-18 Thread Jonathan Pryor
On Mar 18, 2013, at 4:33 AM, Ian Norton ian.norton-bad...@thales-esecurity.com wrote: You probably mean to do: $ csharp -r:System.Core That shouldn't be necessary at all; System.Core.dll should be in the default assembly include set and `using System.Linq` should be in the default

Re: [Mono-list] csharp REPL

2013-03-17 Thread Jonathan Pryor
On Mar 17, 2013, at 11:54 AM, Dale Ragan d...@ragan.io wrote: I was playing with the csharp REPL today after upgrading my install to 3.0.6 and I tried using System.Core, but it returns: System.Core is an assembly (System.Core.dll), not a namespace. There is no System.Core namespace.

Re: [Mono-list] Mono for Android: how to use a non-standard widget from axml?

2013-03-11 Thread Jonathan Pryor
On Mar 11, 2013, at 8:07 AM, Dimitar Dobrev dpldob...@yahoo.com wrote: I have a class in my project that is a widget. I know I can use it in code as a workaround but can I use it in axml as well? If so, how do I configure it? The monodroid list [0] or the forums [1] would be a better

Re: [Mono-list] Poor Mono performance

2013-03-11 Thread Jonathan Pryor
On Mar 11, 2013, at 6:04 AM, Ian Norton ian.norton-bad...@thales-esecurity.com wrote: Don't forget too, that process creation is very expensive on windows, .Net sort of shortcuts this because it is deeply welded into windows. Not really. A process is a process. That's why the .NET team

Re: [Mono-list] callvirt instruction performance penalty?

2013-03-11 Thread Jonathan Pryor
On Mar 11, 2013, at 8:47 PM, Nigel Delaney nigel.dela...@outlook.com wrote: However, I was surprised to learn when disassembling code that both Mono and Microsoft seem to ignore this optimization, and emit all method calls as callvirt instructions in IL regardless of whether or not they are

Re: [Mono-list] Xamarin 2.0 concern

2013-03-01 Thread Jonathan Pryor
On Feb 27, 2013, at 2:09 PM, edward.harvey.mono edward.harvey.m...@clevertrove.com wrote: Still, how to pronounce it? Samarin? Zamarin? Ex-amarin? The X is pronounced as a Z, so more like Zamarin (just like Xylophone). - Jon ___ Mono-list

Re: [Mono-list] Running a shell builtin from mono

2013-02-08 Thread Jonathan Pryor
On Feb 8, 2013, at 5:39 AM, Mathias Tausig mathias.tau...@a-cert.at wrote: Does it? I didn't know that. I assumed it uses the same shell that mono is running in. You're assuming that Mono was started from a shell. This need not be the case (e.g. started directly as user's login shell or as

Re: [Mono-list] Running a shell builtin from mono

2013-02-07 Thread Jonathan Pryor
On Feb 7, 2013, at 8:27 AM, Ulrich Hertlein u.hertl...@gmail.com wrote: Any particular reason why you don't just call the POSIX syscall directly, w/o exec a shell? Which is bound as Syscall.umask():

Re: [Mono-dev] Distinction between generic type and instance type

2013-02-06 Thread Jonathan Pryor
On Feb 6, 2013, at 10:28 AM, Stuart Golodetz stu...@semmle.com wrote: do you know whether the distinction being made by Mono between a generic type and the instance type corresponding to it is only of relevance to the compiler, or does it have real implications for an application-level

Re: [Mono-list] Why Gnome prefer JavaScript?

2013-02-05 Thread Jonathan Pryor
On Feb 5, 2013, at 10:23 AM, Alberto León leontis...@gmail.com wrote: But, JavaScript was the reason to Oracle denounced Google. No, Java as why Oracle sued Google. JavaScript is completely different. It's kinda/sorta/not-really like comparing C and Perl -- sure, they both use '{' for blocks,

Re: [Mono-list] Unable to get block device size in UnixStream

2013-01-29 Thread Jonathan Pryor
On Jan 29, 2013, at 3:46 AM, Dragony csch...@rapidshare.com wrote: I want to get the device size of /dev/sda. I have an open fd and a UnixStream Don't use UnixStream.Length here; UnixStream.Length uses the stat(2) system call, which states: http://linux.die.net/man/2/stat The st_size field

Re: [Mono-list] Question on unix signal handling

2013-01-17 Thread Jonathan Pryor
On Jan 17, 2013, at 11:02 AM, mickeyf mic...@thesweetoasis.com wrote: I see in this documentation: http://oddacon.hopto.org:8181/1.1/handlers/monodoc.ashx?link=T%3AMono.Unix.UnixSignal In a multi-threaded program, a thread is selected at random among the threads that can handle the

Re: [Mono-list] Question on unix signal handling

2013-01-17 Thread Jonathan Pryor
On Jan 17, 2013, at 4:21 PM, mickeyf mic...@thesweetoasis.com wrote: Ok, so if I have a thread in my managed code that does nothing but check UnixSignal.WaitAny, as described in height8's blog post, and then does no more than set some simple variable when that occurs, that should as safe and

Re: [Mono-list] libc.so vs libc.so.6

2013-01-14 Thread Jonathan Pryor
On Jan 14, 2013, at 12:11 PM, tomason t...@creamysoft.com wrote: Is there a way to tell mono to look somewhere else for libc.so? Yes: an .exe.config with a dllmap/: http://mono-project.com/DllMap However, this really shouldn't be necessary; mono includes a default dllmap in

Re: [Mono-dev] Problems with FileStream.Lock();

2013-01-11 Thread Jonathan Pryor
On Jan 8, 2013, at 3:52 PM, Terry Watts terry.terrywatts@gmail.com wrote: I have looked at the exception under the debugger, that's why E is in the catch{ Exception E}. The exception thrown is a lock violation; not a Not Supported exception. The exception thrown is lock violation because

Re: [Mono-list] ASCII bytes to string?

2013-01-10 Thread Jonathan Pryor
On Jan 10, 2013, at 1:28 PM, mickeyf mic...@thesweetoasis.com wrote: The string itself displays as expected, but shows a length of twice the number of characters, as if String.Length is reporting the number of bytes (UTF16) rather than the number of Unicode characters in the string. In all

Re: [Mono-dev] Problems with FileStream.Lock();

2013-01-08 Thread Jonathan Pryor
On Jan 8, 2013, at 4:44 PM, Terry-Watts.com te...@terry-watts.com wrote: I have check the Android API docs and file locking has been available on channels since API Level 1. on channels? Anyway, quick perusal of the source shows that FileStream.Lock() is fcntl(2):

Re: [Mono-dev] Problems with FileStream.Lock();

2013-01-08 Thread Jonathan Pryor
On Jan 7, 2013, at 4:50 PM, Terry-Watts.com te...@terry-watts.com wrote: I have a class that work fine in C# under Windows but not under Monodroid. This is a mono bug: https://bugzilla.xamarin.com/show_bug.cgi?id=9411 Thinking about it a but more, though, it's an app bug (+ mono bug). The

Re: [Mono-list] linux, binfmts:Unexpected behavior

2013-01-04 Thread Jonathan Pryor
On Jan 2, 2013, at 1:02 PM, ma...@manfbraun.de wrote: I moved over a lot of utilities from windows to linux, but starting them using mono ... is a pain and luckily, I discovered binfmts. Presumably as suggested at:

Re: [Mono-list] Questions on Mono.Unix.Pipes

2012-12-17 Thread Jonathan Pryor
On Dec 17, 2012, at 12:05 PM, mickeyf mic...@thesweetoasis.com wrote: I have been using this with some success, but I am relatively new to Linux, and the mono documentation that I have found is missing or incomplete. Is it? http://docs.go-mono.com/?link=T%3aMono.Unix.UnixPipes

Re: [Mono-dev] SGen stability

2012-11-05 Thread Jonathan Pryor
On Nov 5, 2012, at 7:16 AM, Roope Kangas ro...@grandcrugames.com wrote: I have noticed a few times that when we cause a spike the amount of threads we run the server sometimes crashes with the following output: ... Any ideas on what to do? This kind of behaviour does not occur with Boehm GC.

Re: [Mono-list] monologue blogs

2012-10-16 Thread Jonathan Pryor
On Oct 16, 2012, at 11:40 AM, Ian Norton ian.norton-bad...@thales-esecurity.com wrote: Hello all I was wondering, how do blog feeds get added to http://www.go-mono.com/monologue/ ? My blog posts about debian packages might be useful to more people. If you have permission to commit to the

Re: [Mono-list] How does mono translated into C++ Native Code in Linux

2012-09-16 Thread Jonathan Pryor
On Sep 16, 2012, at 9:05 PM, John Chen john...@gmail.com wrote: Question, when Mono using AutoEvent inside managed code, what does it corresponding it to? I know in Windows it translated into Windows Event object (I could use the same handle in C, C++), how about in Linux? On Linux, io-layer

Re: [Mono-list] Thread safe list in C#

2012-09-10 Thread Jonathan Pryor
On Sep 3, 2012, at 1:31 AM, vnan122 veeresh...@gmail.com wrote: Hello every one, I just want to know how to make a list thread safe In practice, you don't; a method can do anything... By convention, you can generally assume that static members are thread safe and instance members are not

Re: [Mono-list] Proper way to reference assemblies?

2012-09-06 Thread Jonathan Pryor
On Sep 6, 2012, at 7:31 PM, kibagami labra...@csusm.edu wrote: I'm trying to work with MonoDroid The monodroid list would be more appropriate: http://lists.ximian.com/mailman/listinfo/monodroid anyhow, while coding; I've been trying to add extra .NET libraries that were not included

Re: [Mono-dev] Malloc issue?

2012-08-24 Thread Jonathan Pryor
On Aug 23, 2012, at 2:35 AM, Greg Young gregoryyou...@gmail.com wrote: We are allocating and releasing unmanaged memory with marshal.allochglobal. In mono we are getting the following failure (no failures under clr). Any ideas? That's not a mono error, that's a glibc assert (and thus cannot

Re: [Mono-dev] Why does .NET object lifetime not extend into an instance method call?

2012-08-24 Thread Jonathan Pryor
On Aug 24, 2012, at 1:11 PM, David Jeske dav...@gmail.com wrote: (1) Why would a call to an instance method not hold this alive for the entire duration of the call? `this` isn't special, it's just an implicit variable passed into the method. If the variable isn't used within the method call,

Re: [Mono-dev] Why does .NET object lifetime not extend into an instance method call?

2012-08-24 Thread Jonathan Pryor
On Aug 24, 2012, at 4:26 PM, David Jeske dav...@gmail.com wrote: Thanks very mych for the detailed reply. It seems to me there is a race that has nothing to do with native code. Native code just makes it easier to reason about, but as you mention it is quite applicable to managed code. My

Re: [Mono-list] Questions about coding style

2012-08-21 Thread Jonathan Pryor
On Aug 20, 2012, at 3:28 PM, Philippe Grohrock philippe.grohr...@gmail.com wrote: Thanks for the reply already and I'm sorry, I should've added the lines of code. static class GlobalVariables { public static MySqlConnection connection = new connection(); }

Re: [Mono-list] Questions about coding style

2012-08-20 Thread Jonathan Pryor
On Aug 17, 2012, at 5:49 PM, Philippe Grohrock philippe.grohr...@gmail.com wrote: 1. Is it bad/good style to have a public class that implements global variables? How do you define global variable? :-) `public static` fields are Very Bad™, unless they're `readonly`. This is because there's

Re: [Mono-dev] Few questions about Linq implementation

2012-08-10 Thread Jonathan Pryor
Unless you _really_ need a System.Data.Linq-compatible API, I would suggest giving up. Instead, focus on getting the open-source EF release working on Mono, and use that instead. http://entityframework.codeplex.com/ - Jon On Jul 31, 2012, at 4:06 AM, Sharique uddin Ahmed Farooqui

Re: [Mono-dev] .net/mono inconsistency

2012-08-10 Thread Jonathan Pryor
On Jul 13, 2012, at 11:23 AM, Matthias D. matth...@googlemail.com wrote: I'm porting a .net application to mono and I noticed a small inconsistency in System.Diagnostics.DefaultTraceListener. In .net this class has a public constructor and in mono it has only a private one (none in the source

Re: [Mono-dev] .net/mono inconsistency

2012-08-10 Thread Jonathan Pryor
On Jul 14, 2012, at 6:26 AM, Matthias D. matth...@googlemail.com wrote: Ok I figured it out, the problem was using the answer from this: http://stackoverflow.com/questions/1769772/reading-tracelistener-initializedata-property-from-config-net-1-1 and in mono there is no field called

Re: [Mono-dev] Mono.Posix question

2012-08-10 Thread Jonathan Pryor
On Jun 22, 2012, at 9:35 AM, Rob Wilkens robwilk...@gmail.com wrote: Do you know where i can find documentation for Mono.Posix? Documentation is in git: https://github.com/mono/mono/tree/master/mcs/class/Mono.Posix/Documentation/en Accessible from the web:

Re: [Mono-dev] Mono.Posix question

2012-08-07 Thread Jonathan Pryor
On Jun 22, 2012, at 9:35 AM, Rob Wilkens robwilk...@gmail.com wrote: Do you know where i can find documentation for Mono.Posix? Documentation is in git: https://github.com/mono/mono/tree/master/mcs/class/Mono.Posix/Documentation/en Accessible from the web:

Re: [Mono-dev] .net/mono inconsistency

2012-08-07 Thread Jonathan Pryor
On Jul 13, 2012, at 11:23 AM, Matthias D. matth...@googlemail.com wrote: I'm porting a .net application to mono and I noticed a small inconsistency in System.Diagnostics.DefaultTraceListener. In .net this class has a public constructor and in mono it has only a private one (none in the source

Re: [Mono-dev] .net/mono inconsistency

2012-08-07 Thread Jonathan Pryor
On Jul 14, 2012, at 6:26 AM, Matthias D. matth...@googlemail.com wrote: Ok I figured it out, the problem was using the answer from this: http://stackoverflow.com/questions/1769772/reading-tracelistener-initializedata-property-from-config-net-1-1 and in mono there is no field called

Re: [Mono-dev] Few questions about Linq implementation

2012-08-07 Thread Jonathan Pryor
Unless you _really_ need a System.Data.Linq-compatible API, I would suggest giving up. Instead, focus on getting the open-source EF release working on Mono, and use that instead. http://entityframework.codeplex.com/ - Jon On Jul 31, 2012, at 4:06 AM, Sharique uddin Ahmed Farooqui

Re: [Mono-dev] Show Linux . hidden directories

2012-06-12 Thread Jonathan Pryor
On May 31, 2012, at 4:36 PM, BigalGeorge wrote: Hi is mono capable of browsing the hidden directories under Linux? Why I ask is that I have enabled them for viewing under Ubuntu eg are visible in Nautilus, but when using mono browser they are hidden. What is the mono browser? I can't easily

Re: [Mono-dev] DllImport(__Internal) and libMonoPosixHelper static build

2012-04-16 Thread Jonathan Pryor
On Apr 12, 2012, at 3:43 AM, ralphbariz wrote: I'm trying to compile a static one binary mono(Because the target system has an incompatible loader). What platform is this? What kind of loader does your target system have? Does it have any shared library loader? After a few tries, I got also

Re: [Mono-list] Help finding system.media sounds

2012-04-05 Thread Jonathan Pryor
On Apr 4, 2012, at 11:07 PM, Xavi de Blas wrote: Hello, I need to find the audio files that are called when I do: System.Media.SystemSounds.Question.Play() System.Media.SystemSounds.Asterisk.Play() System.Media.SystemSounds.Beep.Play() because I need to play them also with another

Re: [Mono-list] Linux - Mono - Image Files...?

2012-04-03 Thread Jonathan Pryor
On Mar 30, 2012, at 3:01 AM, Allen Copeland wrote: Just out of curiosity: does mono support .so-based images for CLI metadata? No, though there was some thinking in that direction many moons ago in the context of supporting mixed-mode assemblies:

Re: [Mono-list] Embedded Mono using DllImport(__Internal) and returning string

2012-03-12 Thread Jonathan Pryor
On Mar 12, 2012, at 3:51 PM, efontana wrote: I'm using Embedded Mono and P/Invoke DllImport. If I have a method which returns a string ... The corresponding C method should strdup the string right? Probably not. During string marshaling, the pointer returned from CSharp_Test_ReturnString()

Re: [Mono-dev] [db|sql]metal using a custom DbSchemaLoader ?

2012-03-08 Thread Jonathan Pryor
On Mar 8, 2012, at 8:16 AM, Cyrille Chépélov wrote: Would a patch removing the #if !MONO_STRICT .. public condition from ISchemaLoader common implementations be accepted in Mono System.Data.Linq ? No. I notice Mono's S.D.Linq already leaks some bits from DbLinq.Util Then that's a bug.

Re: [Mono-dev] DeflateStream on OSX

2011-12-25 Thread Jonathan Pryor
On Dec 20, 2011, at 1:06 PM, Jonathan Shore wrote: I attempted to use System.IO.Compression.DeflateStream and encountered a DLL load error when DeflateStream attempts to load the MonoPosixHelper DLL. Searching in /Library/Frameworks/Mono.framework/Libraries/mono did not find

Re: [Mono-dev] Crash in call to internalGetHome()

2011-12-25 Thread Jonathan Pryor
On Dec 22, 2011, at 9:30 AM, Kamal Aboul-Hosn wrote: I see that internalGetHome is defined as an extern internalCall function. Is there perhaps something I am missing with regard to all the elements I need to install to make it work? It's an environment issue. Environment.internalGetHome()

Re: [Mono-list] Monodroid + emulator

2011-12-05 Thread Jonathan Pryor
On Nov 22, 2011, at 11:02 AM, sebi77 wrote: I'm writing an app for an Android tablet, so I need larger resolution then the default. I set up a 1024*768, 2.2 Android emulator, and I deleted the Abstracted LCD density property, because it spoils the size of my bitmaps. It works fine with

Re: [Mono-list] System.Diagnostics.Debug.Assert()

2011-10-28 Thread Jonathan Pryor
On Oct 27, 2011, at 1:33 PM, Steve Lessard wrote: Debug builds of my Mono command line application blow right by all Debug.Assert statements, even the ones I know fail the assertion. Heck, even Debug.Assert(false, Foo) gets ignored. Neither running standalone on the command line via

  1   2   3   4   5   6   7   8   9   10   >