Re: [Mono-dev] Git line-ending issues
On Fri, Jan 7, 2011 at 2:17 AM, st...@free.fr wrote: Alright. But my main question was about what I should do specifically about the commit I mentioned. Should I restore the line endings to what they were, or leave things as is? Or does it not matter either way? Thanks. I don't know that I can make the call which way it should go. Reverting it won't help history now it's in the main repo, so maybe it makes sense to leave it as it is... but either way it should match the .gitattributes settings. Of course, that means you could either change the .gitattributes to match the file, or revert the file. -- Michael Hutchinson http://mjhutchinson.com ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list
Re: [Mono-dev] Git line-ending issues
I don't mind either way. If someone has a strong opinion on this, let me know, otherwise I guess I'll just edit the .gitattributes file, to avoid adding more noise. (And sorry about that crap, really...) Michael Hutchinson wrote: On Fri, Jan 7, 2011 at 2:17 AM, st...@free.fr wrote: Alright. But my main question was about what I should do specifically about the commit I mentioned. Should I restore the line endings to what they were, or leave things as is? Or does it not matter either way? Thanks. I don't know that I can make the call which way it should go. Reverting it won't help history now it's in the main repo, so maybe it makes sense to leave it as it is... but either way it should match the .gitattributes settings. Of course, that means you could either change the .gitattributes to match the file, or revert the file. -- Michael Hutchinson http://mjhutchinson.com ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list -- View this message in context: http://mono.1490590.n4.nabble.com/Git-line-ending-issues-tp3177991p3178842.html Sent from the Mono - Dev mailing list archive at Nabble.com. ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list
Re: [Mono-dev] File not found error when using Activator.CreateInstanceFrom()
On Jan 6, 2011, at 5:13 PM, mike wrote: Thanks for the reply. Not sure what you mean as I'm not doing a LoadLibrary(). Yes, you are: it's implicit to P/Invoke. (OK, so .NET is doing it on your behalf under the covers, but a LoadLibrary() is still occurring.) Since you're on Windows, LD_LIBRARY_PATH has no effect (that's a Unix environment variable). Setting PATH might help; see: http://mono-project.com/DllImport#Windows_DLL_Search_Path Compile the sample code(s) above in this post for an example of how to produce the error. The fundamental problem is that your example is still incomplete. Providing a .zip may be more appropriate, but the fundamental question is this: how _exactly_ you're compiling your native libraries? For example, when I extract your source files from the relevant email and compile like this: CL /c MyEnviron.cpp LINK /DLL /OUT:Native\Environ.dll MyEnviron.obj CL /c MyLib.cpp LINK /DLL /OUT:Native\Test_Native.dll MyLib.obj Native\Environ.lib CSC app.cs /platform:x86 The above allows your code to work, but it took me an hour to re-learn enough CL+LINK to make it work. (My first effort at `CL /LD /FoNative\Test_Native.dll MyLib.cpp` failed horribly, for reasons I can't fathom. Thanks, Microsoft!) I'm not sure why this would be failing under Mono, so that does appear to be a bug. However, a workaround for mono is to place the .DLL files into the same directory as your .EXE, instead of into a Native sub-directory. (At least, this works for me.) Furthermore, your C# code appears wrong (or you're doing something different when compiling your native libraries). Specifically: // Test Method [DllImport(Native\\Test_Native.dll, EntryPoint = Test, ExactSpelling = false, CallingConvention = CallingConvention.StdCall)] static extern void _Test(); Test_Native.dll!Test() will default to Cdecl calling convention, not StdCall, so your calling convention is wrong. This often won't immediately break things (as .NET will occasionally detect the stack mismatch and fix it), but it can break things, and thus should be fixed. I'm also not sure why you're setting ExactSpelling at all. - Jon ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list
[Mono-dev] mono linker - mscorlib.dll
Hi, I am using monolinker to remove some functionality that I don't want users to have in my embedded mono application. My application uses two different C# dlls and users can change/replace one of them. However, I don't want them to have file read/write access (ex. to write viruses...). I removed those functionality from mscorlib.dll using monolinker successfully, but the application crashes afterwards. I am not using Sytem.IO at all in my original dlls. Can monolinker be used this way? If so, what might possible be wrong? Unfortunately, I don't have any debug information since Visual Studio does not show where the program crashed. The linker is from mono-2.8.1 tarball release. Thanks for any help. ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list
Re: [Mono-dev] mono linker - mscorlib.dll
Isn't AppDomain's security useable to sandbox the application ? ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list
Re: [Mono-dev] What directories/files needed to distribute a mono runtime from a build?
Hello Friends.. Tomasz Kuszczak admitted Manchester United blew a golden opportunity by only drawing at Birmingham on Saturday. With Chelsea's visit to Hull one of seven Premier League games to fall victim to the atrocious weather at the weekend, United knew victory at St Andrew's would have taken them top. Instead, they had to settle for a point as Darren Fletcher's late dismissal cost them any chance of mounting one of those customary salvos during six minutes of injury time.. It means Sir Alex Ferguson and his players will spend a few days in Doha this week knowing they are once again facing an unwanted game of catch-up with Chelsea. 'Of course it is a missed opportunity,' said Kuszczak. 'We knew how big that game was and we were disappointed not to win. 'There is nothing to be happy about. We know what we have to do to keep up our challenge for the title. We want to win every match, no matter who we play.' Thanks - http://www.cartier4us.com/Cartier-Rings-7.html cartier love ring http://www.cartier4us.com/Cartier-Love-1.html cartier love charity bracelet http://www.cartier4us.com/Cartier-Gold-Love-2.html buy cartier bracelets -- View this message in context: http://mono.1490590.n4.nabble.com/What-directories-files-needed-to-distribute-a-mono-runtime-from-a-build-tp3165696p3178672.html Sent from the Mono - Dev mailing list archive at Nabble.com. ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list
Re: [Mono-dev] Moonlight basics - Overview
Hello! I write for the first time and I hope that I made the right forum. But the title seemed very general and therefore suitable. My question: I'm working for a medium sized software company in France. After the software has now been translated in German, there is now a matter to bring them in Germany at the man. This is the positioning on various search engines such as Google can be improved. It is also planning a campaign with AdWords. On the other hand, it is also part of my task, the positioning in a natural way as u (référencement naturel - I do not know how to say this in German) to improve. And is what it is at my question. How can you make the best for a software (software for enterprise resource planning, ie, a B2B software)?So I've found some web directories and web directories, in which one could sign up. What could we try? Does anyone of you are platforms on which to showcase its software u advertise thus also in the sense that?I've also read some of backlinks, understand the principle but not quite. Where can I put this link for a software?I hope to get some useful answers, because tomorrow afternoon I have to imagine my plan.Thanks to all of you in advance! - http://www.cartier4us.com/Cartier-Rings-7.html cartier love ring http://www.cartier4us.com/Cartier-Love-1.html cartier love charity bracelet http://www.cartier4us.com/Cartier-Gold-Love-2.html buy cartier bracelets -- View this message in context: http://mono.1490590.n4.nabble.com/Moonlight-basics-Overview-tp3034420p3178674.html Sent from the Mono - Dev mailing list archive at Nabble.com. ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list
[Mono-dev] Urgent: need more help with Git :(
I think I messed up. Like, badly. See this: https://github.com/mono/mono/commit/22c53124ae437b2e7311f3beabd9de22d83b15db I don't know what this merge is about (I'm its author), but it looks bad to me. Here's exactly what I did: I made 5 minor commits locally, double checked everything to make sure I don't fuck (reviewing each change, comparing them with the previous version, etc), then went on and pushed my changes to master. The 5 commits appear fine (although I didn't expect GitHub to pick up the date I committed them locally, as opposed to using the push date)... but there's also this 6th change that looks nasty to me. For what it's worth, just before pushing, I tried to pull to make sure I was up to date, and my TortoiseGit crashed at this point. I didn't think much of it, but now I'm wondering whether this could have a relation with this merge. I have no idea what I did, and am really sorry and embarrassed about this. I very much want to contribute to the Mono project, but I guess I should step back for now. *sigh* Can anyone shed some light about what needs to be done? Apart from kicking my ass. -- View this message in context: http://mono.1490590.n4.nabble.com/Urgent-need-more-help-with-Git-tp3192395p3192395.html Sent from the Mono - Dev mailing list archive at Nabble.com. ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list
Re: [Mono-dev] mono linker - mscorlib.dll
On Jan 7, 2011, at 12:36 PM, Guillaume Pouillet wrote: Isn't AppDomain's security useable to sandbox the application ? If Mono had a fully implemented Code Access Security (CAS) mechanism? Yes. Unfortunately, Mono doesn't, so AppDomain sandboxing doesn't work. The only sandboxing/security mechanism that Mono supports is CoreCLR, as used in Moonlight/Silverlight. - Jon ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list
Re: [Mono-dev] Urgent: need more help with Git :(
On 07.01.2011 20:51, Stifu wrote: I think I messed up. Like, badly. See this: https://github.com/mono/mono/commit/22c53124ae437b2e7311f3beabd9de22d83b15db I don't know what this merge is about (I'm its author), but it looks bad to me. It's probably this situation: http://mono-project.com/GitFAQ#When_I_commit.2C_my_commit_.22repeats.22_commits_of_other_people Robert ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list
[Mono-dev] Bug in TraceSource
Consider the following test program: using System; using System.Diagnostics; public class Foo { public static void Main() { var t = new TraceSource(Test, SourceLevels.All); Console.WriteLine(t.Switch.Level.ToString()); } } If you run this using Microsoft.NET, it prints All. If you run it with mono-2.8.1, mono prints Off. I believe the following patch fixes the problem, but I do not know if this is the correct fix. diff -r b99a9b69c1b6 mcs/class/System/System.Diagnostics/TraceSource.cs --- a/mcs/class/System/System.Diagnostics/TraceSource.csWed Jan 05 13:34:32 2011 -0500 +++ b/mcs/class/System/System.Diagnostics/TraceSource.csFri Jan 07 15:54:48 2011 -0600 @@ -54,11 +54,11 @@ Hashtable sources = DiagnosticsConfiguration.Settings [sources] as Hashtable; TraceSourceInfo info = sources != null ? sources [name] as TraceSourceInfo : null; source_switch = new SourceSwitch (name); + source_switch.Level = sourceLevels if (info == null) listeners = new TraceListenerCollection (); else { - source_switch.Level = info.Levels; listeners = info.Listeners; } } ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list
Re: [Mono-dev] Urgent: need more help with Git :(
Hi, When pulling new remote changes you can do git pull -rebase which will avoid the (scary, but completely harmless) merge commit git added for you (I don't know how to do that with TortoiseGit, but I assume there is a way) Rolf From: mono-devel-list-boun...@lists.ximian.com [mailto:mono-devel-list-boun...@lists.ximian.com] On Behalf Of Stifu Sent: viernes, 07 de enero de 2011 20:52 To: mono-devel-list@lists.ximian.com Subject: [Mono-dev] Urgent: need more help with Git :( I think I messed up. Like, badly. See this: https://github.com/mono/mono/commit/22c53124ae437b2e7311f3beabd9de22d83b15db I don't know what this merge is about (I'm its author), but it looks bad to me. Here's exactly what I did: I made 5 minor commits locally, double checked everything to make sure I don't fuck (reviewing each change, comparing them with the previous version, etc), then went on and pushed my changes to master. The 5 commits appear fine (although I didn't expect GitHub to pick up the date I committed them locally, as opposed to using the push date)... but there's also this 6th change that looks nasty to me. For what it's worth, just before pushing, I tried to pull to make sure I was up to date, and my TortoiseGit crashed at this point. I didn't think much of it, but now I'm wondering whether this could have a relation with this merge. I have no idea what I did, and am really sorry and embarrassed about this. I very much want to contribute to the Mono project, but I guess I should step back for now. *sigh* Can anyone shed some light about what needs to be done? Apart from kicking my ass. -- View this message in context: http://mono.1490590.n4.nabble.com/Urgent-need-more-help-with-Git-tp3192395p 3192395.html http://mono.1490590.n4.nabble.com/Urgent-need-more-help-with-Git-tp3192395p3 192395.html Sent from the Mono - Dev mailing list archive at Nabble.com. ___ Mono-devel-list mailing list mailto:Mono-devel-list@lists.ximian.com Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list http://lists.ximian.com/mailman/listinfo/mono-devel-list _ No virus found in this message. Checked by AVG - www.avg.com Version: 10.0.1191 / Virus Database: 1435/3365 - Release Date: 01/07/11 ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list
Re: [Mono-dev] Urgent: need more help with Git :(
Hi Rolf, You mean I've been feeling like shit all this time for nothing? ... I guess that's good. :) Thanks a lot, I'll look into it. - Mail Original - De: Rolf Bjarne Kvinge rolfli...@ya.com À: Stifu st...@free.fr, mono-devel-list@lists.ximian.com Envoyé: Samedi 8 Janvier 2011 01:22:02 GMT +01:00 Amsterdam / Berlin / Berne / Rome / Stockholm / Vienne Objet: RE: [Mono-dev] Urgent: need more help with Git :( Hi, When pulling new remote changes you can do “git pull –rebase” which will avoid the (scary, but completely harmless) merge commit git added for you (I don’t know how to do that with TortoiseGit, but I assume there is a way) Rolf From: mono-devel-list-boun...@lists.ximian.com [mailto:mono-devel-list-boun...@lists.ximian.com] On Behalf Of Stifu Sent: viernes, 07 de enero de 2011 20:52 To: mono-devel-list@lists.ximian.com Subject: [Mono-dev] Urgent: need more help with Git :( I think I messed up. Like, badly. See this: https://github.com/mono/mono/commit/22c53124ae437b2e7311f3beabd9de22d83b15db I don't know what this merge is about (I'm its author), but it looks bad to me. Here's exactly what I did: I made 5 minor commits locally, double checked everything to make sure I don't fuck (reviewing each change, comparing them with the previous version, etc), then went on and pushed my changes to master. The 5 commits appear fine (although I didn't expect GitHub to pick up the date I committed them locally, as opposed to using the push date)... but there's also this 6th change that looks nasty to me. For what it's worth, just before pushing, I tried to pull to make sure I was up to date, and my TortoiseGit crashed at this point. I didn't think much of it, but now I'm wondering whether this could have a relation with this merge. I have no idea what I did, and am really sorry and embarrassed about this. I very much want to contribute to the Mono project, but I guess I should step back for now. *sigh* Can anyone shed some light about what needs to be done? Apart from kicking my ass. -- View this message in context: http://mono.1490590.n4.nabble.com/Urgent-need-more-help-with-Git-tp3192395p3192395.html Sent from the Mono - Dev mailing list archive at Nabble.com. ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list No virus found in this message. Checked by AVG - www.avg.com Version: 10.0.1191 / Virus Database: 1435/3365 - Release Date: 01/07/11 ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list