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 I run my app I get a

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 mscorlib.dll and > set the MONO_PA

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 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 have held broken

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

2015-05-14 Thread Jonathan Pryor
On May 12, 2015, at 2:43 PM, Maury Markowitz 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 poster > who’s going

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 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 Mono 1.2:

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 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 specified module, which can

Re: [Mono-list] Using .so file in Android Library

2014-12-05 Thread Jonathan Pryor
On Dec 5, 2014, at 10:06 AM, Burhan Eyuboglu wrote: > As far as I know, there is a difference between linux arm and android arm. > Which tool chain should we use to compile libcyusb.so for Xamarin.Android? If you're running on Android -- which presumably you are if you're using Xamarin.Android

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

2014-11-21 Thread Jonathan Pryor
On Nov 21, 2014, at 7:25 PM, MarLOne 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 shared by Xamarin.Andro

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

2014-11-18 Thread Jonathan Pryor
On Nov 18, 2014, at 3:33 PM, Daniel Hughes 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] Cross-Platform GUI Tookit

2014-11-18 Thread Jonathan Pryor
On Nov 17, 2014, at 10:55 PM, Edward Ned Harvey (mono) 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 Xwt so that those parts could us

Re: [Mono-list] libMonoPosixHelper.dylib?

2014-11-05 Thread Jonathan Pryor
On Nov 5, 2014, at 11:19 AM, Maury Markowitz 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. libMonoPosixHelper.dylib has a cop

Re: [Mono-list] libMonoPosixHelper.dylib?

2014-11-05 Thread Jonathan Pryor
On Nov 5, 2014, at 9:15 AM, Maury Markowitz 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 libMonoPosixHelper.dyli

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 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 .cs by > someone/thing

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

2014-09-12 Thread Jonathan Pryor
On Sep 12, 2014, at 3:40 AM, mutasim 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" needs to support y

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

2014-09-11 Thread Jonathan Pryor
On Sep 11, 2014, at 9:50 AM, mutasim 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 and C#, particular

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 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 licensed, whats

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) 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 have one... ...except that the

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 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 System.ServiceModel

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 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 - Jon

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 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 SHARED.DLL,

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 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 SGen GC by using `mo

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

2013-07-10 Thread Jonathan Pryor
On Jul 10, 2013, at 11:56 AM, mugginsoft 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, via both the embedd

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 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: http://www.mono-project.com/Embedding_Mono Aside: How were y

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

2013-06-11 Thread Jonathan Pryor
On Jun 11, 2013, at 10:00 AM, markcoburnwa 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 read the temp.s you p

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

2013-06-10 Thread Jonathan Pryor
On Jun 10, 2013, at 7:56 PM, markcoburnwa 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 for each platform. W

Re: [Mono-list] ZipArchive?

2013-05-28 Thread Jonathan Pryor
On May 27, 2013, at 1:46 PM, Madsn 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 added in .NET

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

2013-04-08 Thread Jonathan Pryor
On Apr 7, 2013, at 6:12 PM, mutasim 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. IKVM is two things (po

Re: [Mono-list] csharp REPL

2013-03-18 Thread Jonathan Pryor
On Mar 18, 2013, at 4:33 AM, Ian Norton 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 namespace set for `csharp` so that you can

Re: [Mono-list] csharp REPL

2013-03-17 Thread Jonathan Pryor
On Mar 17, 2013, at 11:54 AM, Dale Ragan 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. System.Core.dll con

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

2013-03-11 Thread Jonathan Pryor
On Mar 11, 2013, at 8:47 PM, Nigel Delaney 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 actually > virtual meth

Re: [Mono-list] Poor Mono performance

2013-03-11 Thread Jonathan Pryor
On Mar 11, 2013, at 6:04 AM, Ian Norton 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 invented AppDomains, to avoid the overhead

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 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 place to ask. To

Re: [Mono-list] Xamarin 2.0 concern

2013-03-01 Thread Jonathan Pryor
On Feb 27, 2013, at 2:09 PM, edward.harvey.mono 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 maillist - Mono-list@lists.ximian.c

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 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 system service, in which

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 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(): http://docs.go-mono.com/?link=M%3aMono.Unix.Native.Syscall.umask(Mono.Unix.Native.FilePermissions) - J

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

2013-02-05 Thread Jonathan Pryor
On Feb 5, 2013, at 10:23 AM, Alberto León 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, but other than that.

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 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 gives the size of the f

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

2013-01-17 Thread Jonathan Pryor
On Jan 17, 2013, at 4:21 PM, mickeyf 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 > reliable as I can e

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

2013-01-17 Thread Jonathan Pryor
On Jan 17, 2013, at 11:02 AM, mickeyf wrote: > I see in this documentation: > > > > "In a multi-threaded program, a thread is selected at random among the > threads that can handle the signal, and that

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

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

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

2013-01-10 Thread Jonathan Pryor
On Jan 10, 2013, at 1:28 PM, mickeyf 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 likelihood, the string

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: http://www.mono-project.com/Guide:Running_Mono_Applications#Regi

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

2012-12-17 Thread Jonathan Pryor
On Dec 17, 2012, at 12:05 PM, mickeyf 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 http://docs.go-mono.co

Re: [Mono-list] monologue blogs

2012-10-16 Thread Jonathan Pryor
On Oct 16, 2012, at 11:40 AM, Ian Norton 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 mono git repos, just add your blo

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 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" is used to i

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

2012-09-10 Thread Jonathan Pryor
On Sep 3, 2012, at 1:31 AM, vnan122 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 (unless those instance me

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

2012-09-06 Thread Jonathan Pryor
On Sep 6, 2012, at 7:31 PM, kibagami 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 with my eval pa

Re: [Mono-list] Questions about coding style

2012-08-21 Thread Jonathan Pryor
On Aug 20, 2012, at 3:28 PM, Philippe Grohrock 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(); > } > > This way the wh

Re: [Mono-list] Questions about coding style

2012-08-20 Thread Jonathan Pryor
On Aug 17, 2012, at 5:49 PM, Philippe Grohrock 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 no way to prevent modifi

Re: [Mono-list] How to detect which version of Mono a library is compiled with?

2012-05-16 Thread Jonathan Pryor
On May 11, 2012, at 2:54 PM, IBBoard wrote: > What I want is a less hack-ish run script (currently using Bash). The proper > way to do it is to check for features rather than string matching and version > checking (which caused lots of JavaScript issues with people doing IE version > checks badl

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 s

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: http://lists.ximian.com/pipermail/mono

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

2012-03-28 Thread Jonathan Pryor
On Mar 23, 2012, at 8:21 AM, Allen Copeland wrote: > what format does Linux (which I've never used) use for its executable images, Linux uses ELF for shared libraries and executables: http://en.wikipedia.org/wiki/Executable_and_Linkable_Format Mac OS X uses Mach-O: http://en.wik

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_ReturnStri

Re: [Mono-list] Getting the milliseconds of a file's stat information

2011-12-05 Thread Jonathan Pryor
On Dec 1, 2011, at 10:06 AM, Robert Jordan wrote: > The nanosecond resolution fields are not exposed by Mono.Posix's > stat (). Maybe because they are non-standard and a PITA to map... Mostly because I didn't know such a thing as nanosecond resolution stat extensions existed...and it's too late t

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 Ec

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 T

Re: [Mono-list] AOT viable option for deployment

2011-10-21 Thread Jonathan Pryor
On Oct 21, 2011, at 1:09 AM, Trimble, Nathan G wrote: > I would like to know how viable an option AOT (full) is for deploying a > command line program (or possibly a service) on Linux. I’m re-writing an > in-house app and need to determine the best platform. I’ve some existing C# > and Python

Re: [Mono-list] generating html docs

2011-10-19 Thread Jonathan Pryor
On Oct 19, 2011, at 12:48 PM, Ian Norton wrote: > This is all very cool except it seems that webdoc will only let me serve docs > installed in my mono prefix rather than an arbitrary folder, this means I've > had to give my script that generates nightly docs has to have an entry in > sudoers. N

Re: [Mono-list] generating html docs

2011-10-19 Thread Jonathan Pryor
On Oct 11, 2011, at 4:40 PM, Ian Norton wrote: > I'd like, given all of the above to be able to generate html docs for all of > the assemblies, rather like the mono-docs website. The mono-docs website doesn't use `mdoc export-html`, it uses the ASP.NET front-end: http://docs.go-mono.com/

Re: [Mono-list] Support libMonoPosixHelper

2011-09-23 Thread Jonathan Pryor
On Sep 22, 2011, at 11:18 PM, R U Local wrote: > I’m having problems persuading the support files libMonoPosixHelper and > libMonoSupportW to be built during the cross-compile phase. Look at $(topdir)/Makefile.am, the $(SUBDIRS) variable. If CROSS_COMPILING is set, then the `support` directory i

Re: [Mono-list] Package Importieren

2011-09-09 Thread Jonathan Pryor
On Sep 8, 2011, at 3:58 AM, Kuehner wrote: > So, to the very beginning question: How can I implement a *.java-File into a > Mono .NET Projekt for Android? You can add it to the project, and set its build action to AndroidJavaSource. (This can also be done with .jar files.) This will cause the .ja

Re: [Mono-list] Monitor: Pluse() and Wait() - alternative ?

2011-08-09 Thread Jonathan Pryor
On Aug 9, 2011, at 9:34 AM, mwessendorf wrote: > However I need to ensure this runs on the PCL (Portable Class Library) > and therefore the above implementation does not work, since Pluse() / Wait() > aren't supported in PCL Where can I find a listing of the types and members in the PCL?

Re: [Mono-list] using namespace in C++ projects

2011-07-28 Thread Jonathan Pryor
On Jul 26, 2011, at 5:29 PM, hessam wrote: > I just want to add I'm having the same C# and C++ projects in .Net under > windows and "using namepace" works without any problem in C++ project. > And also my C++ code will be on the same namespace as C# codes and the main > reason is I want to call the

Re: [Mono-list] Encoding Issue .Net vs. Mono

2011-07-21 Thread Jonathan Pryor
On Jul 21, 2011, at 2:47 PM, Pablo Ruiz wrote: > Mono uses UTF8 as default encoding. .Net uses UTF16 Note quite. Encoding.Default is "ANSI", which is…~anything on .NET (latin1, Shift-JIS, Big-5, whatever), but _not_ Unicode or UTF-8. On Mono, Encoding.Default is always UTF-8. http://ms

Re: [Mono-list] Render PDF to Image on PC, OSX and iOS?

2011-06-19 Thread Jonathan Pryor
[DllImport] isn't restricted to .dll files; it can use any shared library, e.g. .so files on Linux and .dylib files on OSX. HOWEVER, this doesn't help much on iOS as iOS doesn't allow you to distribute .dylib files with your app; everything must be statically linked. As a Mono extension, you ca

Re: [Mono-list] C to Mono interop passing a byte array

2011-05-20 Thread Jonathan Pryor
On May 20, 2011, at 5:00 AM, Mike D wrote: > I am trying to pass a byte array (image data) from C/Obj-C to managed > using mono_runtime_invoke. I can get a hold of the MonoMethod which > has a byte[] as a parameter and I can call the method but when I try > to use the byte[] in any way on the C# e

Re: [Mono-list] Tabs / Space in Makefile

2011-05-18 Thread Jonathan Pryor
See `info make` or the GNU Make Manual: http://www.gnu.org/software/make/manual/make.html In short, commands for a rule _must_ be indented with TABs, not spaces: http://www.gnu.org/software/make/manual/make.html#Rule-Syntax On May 18, 2011, at 4:22 AM, Mujahid Azam wrote: > .PHO

Re: [Mono-list] Opening a form on a new thread, called from C API

2011-05-03 Thread Jonathan Pryor
On May 3, 2011, at 2:59 PM, valdiorn wrote: > I confirmed that it's the act of opening a form on the new thread that is > causing the trouble. In System.Windows.Forms (and WPF, and SL, and iOS, and Android, and Java Swing, and Qt, and...), UI objects are tied to the thread running the message lo

Re: [Mono-list] How to distribute Mono application

2011-04-22 Thread Jonathan Pryor
On Apr 16, 2011, at 4:38 AM, zealkaiser wrote: > Similarly, If we distribute the application developed with mono, does the > user need to have .Net framework or he/she should have same mono framework. Maybe. :-) See below. > Is there any redistribution package for mono including just the run-tim

Re: [Mono-list] Using Windows DLL in Linux

2011-03-19 Thread Jonathan Pryor
On Mar 18, 2011, at 8:10 PM, Francisco M. Marzoa Alonso wrote: > One customer has sent me a request to create an application that must > work on an Ubuntu host and handle certain device. As Tim H suggested, the _real_ question is this: what kind of file is device-sdk-1.0.dll? Specifically, is it

Re: [Mono-list] compiler errors in XMLDoc

2011-03-15 Thread Jonathan Pryor
On Mar 15, 2011, at 1:03 AM, Steve Lessard wrote: > The comment doesn't start with three slashes. Why does the compiler think > that's an XMLDoc comment? Because XML Documentation Comments can also start with `/**` (slash-star-star): http://www.ecma-international.org/publications/files

Re: [Mono-list] reflector alternitives

2011-02-02 Thread Jonathan Pryor
On Feb 2, 2011, at 6:27 PM, Daniel Hughes wrote: > This decompiler shows promise but unfortunately it was not able to fully > decompile my .net 4.0 assemblies. To be fair, Reflector fails when trying to decompile mcs-generated iterator methods. :-) (At least, it did the last time I tried to do

Re: [Mono-list] Mono.Posix

2011-02-02 Thread Jonathan Pryor
On Feb 2, 2011, at 5:54 AM, Steve Lessard wrote: > ... > This tool basically checks a file's permissions to see if the file is > executable by any or all of user, group, other. > Windows is supposed to have a Posix compliant layer. Does Mono.Posix assembly > work on Windows's Posix layer? Mono.

Re: [Mono-list] dlopen problem on Mono 2.4.4

2011-01-27 Thread Jonathan Pryor
No idea about the SIGSEGV, but your code could use some improvement... On Jan 27, 2011, at 1:43 AM, batuakan wrote: > c# source code > - > > using System; > using System.ComponentModel; > using System.Runtime.InteropServices; > > > namespace swi > { > class MainClass >

Re: [Mono-list] Is there any way to load *.cs code file dynamiclly?

2011-01-24 Thread Jonathan Pryor
On Jan 24, 2011, at 9:35 AM, xoyojank wrote: > I want to use C# as a script language, and my host language is C++. > How I can directly run C# string with the help of mono? I donnot want to > compile the script into dll. You want Mono.CSharp.dll: http://www.go-mono.com/docs/index.aspx?lin

Re: [Mono-list] [Mono-dev] [mono-packagers] Mono 2.10 RC1

2011-01-24 Thread Jonathan Pryor
On Jan 23, 2011, at 2:56 PM, Jo Shields wrote: > Preliminary notes: > * mdoc is still a 2.0 app. Is this intentional? This doesn't need to be per-profile, as it uses Cecil to read IL (and Cecil will read ~any version). By the same logic it could be a 4.0 app; it really doesn't matter. It's cur

Re: [Mono-list] Computer-readable Mono documentation

2011-01-24 Thread Jonathan Pryor
On Jan 23, 2011, at 2:35 PM, Cauê Waneck wrote: > I am finishing a C# target for haXe ( haxe.org ), and I need some way to > automate the generation of externs. I'm not entirely sure what this means... > If there is a way to get all mono documentation ( it would be best if it > contained info o

Re: [Mono-list] Command line parameters with spaces

2011-01-20 Thread Jonathan Pryor
On Jan 20, 2011, at 3:42 PM, karolo84 wrote: > I have tried to figure out the following by myself but so far I wasn't > lucky: I have a .NET program that takes a SQL query as command line > argument. If I now run that program under Windows, I simply quote the string > and everything is fine: > > a

Re: [Mono-list] Operator overloading

2011-01-08 Thread Jonathan Pryor
On Jan 8, 2011, at 12:17 AM, David Henderson wrote: > Would have been nice if I could have found some documentation leading me to > that > solution. Is there a good site or text I should be using? http://msdn.microsoft.com. :-) The relevant starting point in the stack trace is List.Sort():

Re: [Mono-list] Operator overloading

2011-01-07 Thread Jonathan Pryor
On Jan 7, 2011, at 8:35 PM, David Henderson wrote: > OK. I have been trying to no avail to overload the > and < operators on a > struct I wrote. This is extremely easy in C++, but seems to not work in C#. You have properly overloaded operator< and operator>; they are not the problem. > Here is

Re: [Mono-list] Minimum element of a list

2011-01-07 Thread Jonathan Pryor
On Jan 7, 2011, at 4:40 PM, David Henderson wrote: > I have a list and I would like to find the minimum element in the array from > the > current iterator in a foreach loop to the end, not the minimum element > overall. This isn't strictly possible, as there's no way of knowing the index of the

Re: [Mono-list] using 'unsafe struct *' instead of IntPtr with PInvoke..

2010-12-23 Thread Jonathan Pryor
On Dec 22, 2010, at 6:35 PM, jeske wrote: > Is there anything wrong with this pattern? That depends on how you define "wrong." :-) In theory, this is safe (safer, really, as you get more type checking). In practice, it's more iffy for "social" reasons: unsafe code requires 'csc /unsafe', and so

Re: [Mono-list] Call C# .dll from java on linux using mono ?

2010-12-20 Thread Jonathan Pryor
On Dec 20, 2010, at 6:38 AM, AngeReveur wrote: > I have a C# .dll which I would like to call from a java application on > linux ? Is this thing possible using Mono ? Yes, but it isn't easy. You'd basically need to write a JNI library that uses the mono embedding API to invoke managed code. It

Re: [Mono-list] Mono's bin directory

2010-12-17 Thread Jonathan Pryor
On Dec 16, 2010, at 8:40 PM, Steve Lessard wrote: > Loading the man page for each of these tools wouldn't be very efficient. Why isn't reading the man pages efficient? They're online: http://www.go-mono.com/docs/index.aspx?link=root:/man Of course, if you're on a Unixy platform you can

Re: [Mono-list] SqlMetal custom DataContext name

2010-12-07 Thread Jonathan Pryor
On Dec 7, 2010, at 6:00 AM, Daniel Hughes wrote: > By default the generated DataContext class name is Main. > > This causes problems for obvious reasons (really, I couldn't think of > a default more likely to conflict) What obvious reasons? Type names don't conflict with method names (unless the

Re: [Mono-list] Using the syslog [Mono.Unix.Native.Syscall] with own identifier

2010-12-01 Thread Jonathan Pryor
On Dec 1, 2010, at 2:37 PM, wrote: > If I use: > > Syscall.syslog(SyslogFacility.LOG_DAEMON, SyslogLevel.LOG_NOTICE, "myMsg"); > > this appears with identifier "mono:" in the syslog. To make syslog > more evaluable, I need to define my own identifier instead. You need to use Syscall.openlog()

Re: [Mono-list] porting from .NET to Mono

2010-11-18 Thread Jonathan Pryor
On Thu, 2010-11-18 at 08:06 -0800, Steve Lessard wrote: > I would like to get your advice on porting code from .NET to Mono. I > have a class library that I wrote for .NET 3.5 on Windows. In addition > to working in .NET on Windows I want to get it working in Mono on > non-Windows platforms (espec

Re: [Mono-list] porting from .NET to Mono

2010-11-18 Thread Jonathan Pryor
On Thu, 2010-11-18 at 09:29 -0800, jmalcolm wrote: > 1) Windows is not case sensitive but both Linux and Mac are. If you have > not been careful, you will need to fix any case mismatches as part of your > port. The default Mac OSX filesystem (HFS+) is case-insensitive and case preserving, much li

Re: [Mono-list] Multiple issues with sqlmetal and MySql

2010-11-04 Thread Jonathan Pryor
On Thu, 2010-11-04 at 11:12 -0700, st0p wrote: > 2) When I create an instance of the generated DataContext, using a MySql > connection object, I´m getting the following generated sql: > SELECT [t0].[Email], [t0].[Id] AS [ID], [t0].[Password] > FROM [rss].[user] AS [t0] > -- Context: SqlProvider(Sql

Re: [Mono-list] Create a shared library

2010-10-28 Thread Jonathan Pryor
On Thu, 2010-10-28 at 12:07 -0400, Matt Calder wrote: > Is it possible to compile a C# library, using mono, into a native > shared library on a linux system? I would like to then > call that shared library from other languages (python and R). Short answer: No. Workaround answer: you can create a

Re: [Mono-list] How to protect a mono application from reverse engineering?

2010-10-25 Thread Jonathan Pryor
On Mon, 2010-10-25 at 15:08 +0200, Stéphane C wrote: > What I want to protect the most is the algorithms used in the > application, they represent many years of research and development and > we don't want them to fall into the hands of a competitor who is just > running an IL disassembler. Again,

Re: [Mono-list] How to protect a mono application from reverse engineering?

2010-10-24 Thread Jonathan Pryor
On Sun, 2010-10-24 at 18:42 +0200, Stéphane C wrote: > I am currently evaluating mono as a replacement of Qt/C++ for a > commercial application but I'm a bit worried about the way it > compiles. Extracting the source code from an IL assembly seems a very > easy task, in fact I found it quite alarmi

Re: [Mono-list] Errors with XML Comments during build

2010-10-24 Thread Jonathan Pryor
On Oct 24, 2010, at 4:19 PM, Ryan Boggs wrote: > I have a project that I am trying to build on Mono-2.8 but it is > erroring out with the following message: > error CS1574: XML comment on 'full method name here' has cref > attribute 'System.String' that could not be resolved It's a cref, so you n

Re: [Mono-list] FW: Is this a viable platform?

2010-10-14 Thread Jonathan Pryor
On Fri, 2010-10-15 at 10:51 +1000, David Younger wrote: > I have an existing .Net job management application running on a Windows > Mobile device. > > What are my realistic chances of using Mono to port this application to > run on iPhone and Android? Depends on what you mean by "port." For iPh

Re: [Mono-list] Passing UTF-8 to a method that takes a .Net string - not possible right?

2010-10-13 Thread Jonathan Pryor
On Tue, 2010-10-12 at 22:33 -0700, nev wrote: > So I've been using Mono.Cairo.Context.ShowText() which takes a string. On > Linux everything is good, never had a problem. > > But running my assemblies on Windows with the Mono assemblies from the > Windows Mono installer everything works - except t

Re: [Mono-list] Command Line Options on Windows and Linux

2010-10-05 Thread Jonathan Pryor
On Mon, 2010-10-04 at 19:47 -0700, Charlie Poole wrote: > I'm using Mono.Options for nunit-console 3.0 and I'm running into > a bit of a conflict of philosophy about chars that start options. > > NUnit has historically NOT recognized args starting with '/' as > options on Linux, although it does a

Re: [Mono-list] Call managed from unmanaged code?

2010-08-18 Thread Jonathan Pryor
On Wed, 2010-08-18 at 21:27 -0400, kroge...@aol.com wrote: > Is it possible to call into a managed DLL from an unmanaged C/C++ > application with the facilities within Mono? Yes, using the Mono embedding API: http://www.mono-project.com/Embedding_Mono http://www.go-mono.com/docs/i

Re: [Mono-list] Pure wrapper calling native code

2010-08-05 Thread Jonathan Pryor
Short [0] version: http://www.mono-project.com/dllimport > Brendon Chung wrote: > > I need this program to access an unmanaged C++ dll. Which prompts the single most important question: do you have a version of this C++ DLL built for the Mac platform? (For example, if the C++ DLL is `foo.dll`,

  1   2   3   4   5   6   7   8   >