mono

mkbundle with mono 2.0

Hi, I've spent a considerable amount of time trying to make a bundle with mono. I can run the program just fine saying mono program.exe but when I say mkbundle --deps -o test test.exe It outputs OS is: Linux Sources: 1 Auto-dependencies: True embedding: /home/chris/Documents/Depot/test/bin/Release/test.exe embedding: /usr/...

monotouch debugging on device never connects

The strange thing is that after deploying to the device and never connecting to the soft debugger, if i go to the settings 'app' onmy iphone, there are no settings for the app i'm debugging - is there something i need to do to add this? I was expecting to be able to check the ip the iphone is conncting to to get at the soft debugger. w...

Weird Mono compilation error

Hi, I am using IKVM to get SVNKit on a Mono project I'm working with, I have a class that implements an interface from SVNKit, and I can't compile: On windows and on .NET, everything compiles fine, just getting this on Mono. /home/nubela/Workspace/subsync/subsync/Core/Subversion/PropGetHandler.cs(22,22): Error CS0535: Subsync.C...

Finding a Position on a 2D Map that meets several criteria

Hi, as my personal project i develop a game to which users can join at any time. I have a tiled worldmap that is created from a simple Bitmap which has resources at random positions all over the map except for oceans. When a player joins i want to create his starting position at a place that has at least 1 tile of each of the 4 resource...

How to prevent Mono from stretching the windows in a WinForms application vertically (on linux)?

The title is quite descriptive I think. My Winforms applications are running on Mono but there is an annoying problem: all my windows in the application are stretched vertically about 1.5 times. So my square shaped buttons and windows become rectangles. Only the sizes are scretched font sizes are not. So there are big gaps in the layout....

Using Mono Compiler/Creating a new one while still outputting a Windows EXE?

This is just a thought for now, but I wonder how hard it would be to either use the Mono Compiler or write a new one while still outputting a Windows EXE? The reason for this thought is that I see people "abusing" the C# language creatively to get some stuff like code contracts or aspect oriented programming up and running, and sometime...

How do I fix the build for mod_mono when it cannot find strndup on FreeBSD?

I am installing mod_mono with Apache 2 on FreeBSD and I get the following error when Apache tries to load the mod_mono.so module. Cannot load /usr/local/apache/modules/mod_mono.so into server: /usr/local/apache/modules/mod_mono.so: Undefined symbol "strndup" The prefix I set for Apache is /usr/local/apache and I have PHP an...

Define mono for only one VirtualHost

I am running an Apache Server with multiple VirtualHosts, and of course I know how to create a new VirtualHost, but I do not know, how I can setup Mono only for this VirtualHost. I have read I need to disable MonoAutoApplication, but I can not find any information on how to set it up on only this VirtualHost. Can anybody in here help m...

Conversion of Gdk Events in Mono

I'm trying to intercept events using Gdk.Window.AddFilter(Gdk.FilterFunc) in Mono. So far, I have been able to hook up the filter function, but now I am trying to use the events in the filter function. This is what I have in the filter function so far: private Gdk.FilterReturn FilterFunction(IntPtr xEvent, Gdk.Event evnt) { if (ev...

Why is msg.d not supported in Mono 2.6.1?

Currently I have webservice running on the Mono platform. When I call the service I get the data in the form of msg, and not msg.d. Any thoughts? Update: Wow, this turns out to be a big deal. As Phil Haack explains, this opens up the possibility of an XSS attack when you use a GET to fetch the data. Question still stands: should t...

Mono Project: Why is mono faster than .NET?

I am surprised to observe that mono is faster than .NET. Does anyone know why is it so? I was expecting mono to be slower than .NET but wasnt the case atleast with my experiments. I have a windows xp laptop with .NET framework. I am running CentOS on vmware vmplayer on top of windows xp. I wanted to try mono. So grabbed the Mono 2.6.1 s...

Monodevelop 2.2.1 (Linux) takes a long time to compile/build

I upgraded Monodevelop to 2.2.1 from an older version, and when I do ctrl+F7 (rebuild proj), the app freezes for a few secs, and takes at least 30secs to a min to be done compiling, which is weird because on the older version, there is no freeze and compiling takes a quick few seconds. The code hasn't changed much so I don't think that i...

SQLite on C# Cross-Platform Applications

Can someone help/guide me with using SQLite lib on Linux (MONO) and Windows (.NET) On linux i use native mono sqlite client, and on windows i use http://sqlite.phxsoftware.com/ is there a way to define 'using' directives like this : #if (linux) using Mono.Data.Sqlite; #else using System.Data.SQLite; Another problem is small diff...

Moq (or possibly another framework) on Mono / MonoTouch

I've just started some MonoTouch development and I've tried, and failed, to get Moq working for my unit tests. The binary version fails because it's looking for System v2.0, which I assume is down to its Castle requirements, and building it from source crashes the compiler! My question is has anyone gotten Moq to work on Mono (the touch...

.NET Hashtable - "Same" key, different hashes

Is it possible for two .net strings to have different hashes? I have a Hashtable with amongst others the key "path". When I loop through the elements in the table to print it, i can see that the key exists. When trying to looking it up however, there is no matching element. Debugging suggests that the string I'm looking for has a differ...

What is the right approach to checksumming UDP packets

I'm building UDP server application in C#. I've come across a packet checksum problem. As you probably know, each packet should carry some simple way of telling receiver if packet data is intact. Now, UDP already has 2-byte checksum as part of header, which is optional, at least in IPv4 world. Alternative method is to have custom check...

How can I see debug messages with Mono apps?

Hi, I have various Debug.WriteLine messages, I tried to see those messages using export MONO_DEBUG_LEVEL=debug, but I end up getting other irrelevant debug messages which was not outputted by my code. What should I do to see the debug messages? I'm using Linux :) Thanks. ...

Does Mono XSP Server Work?

I'm trying for a week to make my XSP server work with simple static content: html-pages, js-files, gifs, jpegs etc... No ASP.NET. And this server always randomly crashes while navigating this pages with browser. My Environment is: Mono 2.6.1, Windows Vista. I also tried to build XSP on linux (with Novell's make-files) but same result. ...

How can I get directory name of a path?

I tried using Path.GetDirectoryName() but it doesn't work. What I'm trying to get is from /home/nubela/test/some_folder , I wanna get "some_folder" How can I do this? The method should work for both Windows/Linux (Mono) Thanks! ...

How do I choose the subset of IKVM dlls that are relevant to my project?

So I created an assembly referenced library of SVNKit (Java) using IKVM. In my project, I referenced all of the IKVM DLLS to use the SVNKit, however, I'm pretty sure not all of them are used. And there are alot of DLLs included. Is there a way other than trial and error to find the subset of IKVM DLLs that are relevant? Thanks! ...