I have a variable which I am using to represent state. It can be read and written to from multiple threads.
I am using Interlocked.Exchange and Interlocked.CompareExchange to change it. However I am reading it from multiple threads.
I know that volatile can be used to make sure the variable is not cached locally but always reads direct...
In a .Net application that flashes the title bar and the corresponding taskbar button for a window, to attract the users' attention, P/Invoke code something like this is used:
[DllImport("user32.dll")]
private static extern bool FlashWindow(IntPtr hwnd, bool bInvert);
public static void FlashWindow(System.Windows.Forms.Form window)
{
...
I have developed an ASP.Net Web Service targeting Mono. I have deployed it to an OpenSUSE 11.1 VM running Mono under Apache.
Is there a way to monitor the @OutputCache hit ratio for my ASP.Net app deployed for Mono under a Linux OS similar to the Windows Performance Monitor, for example? This does not have to necessarily involve perfo...
How can I execute some code when my process is going to exit? I've tried this:
public static void Main(string[] args) {
StartUpMyServer();
AppDomain.CurrentDomain.ProcessExit += delegate(object sender, EventArgs e)
{
Console.WriteLine("process exiting!");
TellMyServerToStopAcceptingConnectionsAndWaitUntilIt...
Is it possible to check whether an application(For eg:Adobe Reader) is installed in Mac machine using C#?
If so how to do that?
Please help!
Jay
...
I am running IronPython 2.0.2 interactive console with Mono 2.4 on OSX Terminal.app . How do I insert indent/tab in the Terminal.app ? I want to do this so I can indent my code.
For example I want to input print "hello tab" what I see is print "hellotab" despite pressing the tab key many times. When the command gets executed it p...
Has anyone attempted using perlembed in Mono on Linux?
Here is the link: perlembed
Here is my first attempt at the DllImport signatures:
private const string PERL_LIB = "/usr/lib/perl5/5.8.8/i386-linux-thread-multi/CORE/libperl.so";
[DllImport(PERL_LIB, EntryPoint = "perl_alloc", SetLastError = true)]
public static extern IntPtr Allo...
Hello:
I have developed an ASP.NET web application that has the following files (after being published): Default.aspx, Web.config, .dll (in bin folder), .pdb (in bin folder), and an App_Data folder that currently has nothing in it. This application runs well in Visual Studio.
My company uses Apache so the IT department decided to tr...
I mean something like this:
http://www.globalscaletechnologies.com/p-25-sheevaplug-dev-kit-uk.aspx
My minimal hardware requirement is: Ethernet card
...
I am using F# on a Mac and I wonder kbow if there is any F# IDE that works over mono (not a general purpose editor). It seems that there is an addon for MonoDelvelop, but I think it may no be mature enough. Any suggestion ?
...
I installed the Moonlight SDK and Monodevelop (latest 2.1 trunk) on both SuSE and Mac OS X. I noticed System.Windows.Controls.dll is in the Moonlight SDK folder but I can't reference it in my project. Anyone know why I can't add a reference to this assembly?
...
I am compiling a Winforms app for use with Mono and using the .Net stuff built into Visual Studio 2008 for a Winforms app. Everything works fine, but I'd like to run without the terminal window opening.
Do I need to use gmcs to get this line to work:
-target:winexe
as seen here? Or can I do it with the built-in commands that Visual ...
The project is a GNOME aplication not a ASP.NET. I need to load a welcome.html file into the main page of the UI. Just like MonoDevelop does. But I dont know how to make international versions that will load ased on locality. And I dont know how to bundle it into the binary using some sort of resource management.
...
I would like to use the Overlapped IO functions in a .Net app, specifically WriteFileGather. Is this supported through the standard class library?
Bonus points: does it work in Mono?
...
I would like to be able to decode and preview all manner of RAW image files from within an application written in C#/Mono. Preferably something that is fully implemented in C# as I need to to run cross-platform and would rather not have to have platform specific binaries just for the raw decoding...
Anyone know of any libraries that do ...
Are there any DB engines that are implemented entirely in .NET and Mono compatible?
I would like to have a DB solution that will run on all platforms via Mono so that I don't have to worry about having separate native binaries for each platform.
...
I am taking my first steps (or perhaps my last steps) in GTK# on Mono for OSX. I write a .cs file and then try to compile with mono:
gmcs -pkg:gtk-sharp-2.0 one.cs
this results in this message
error CS8027: Couldn't run pkg-config: ApplicationName='pkg-config', CommandLine='--libs gtk-sharp-2.0', CurrentDirectory=''
Which would, ap...
Hi,
I just moved from .net development to LINUX MONO development... and i don have much experience with linux dev earlier..
I have a requirement to create a background service (like windows services) in mono c#.. is it possible..
And is it possible to access the LINUX native APIs from mono c#. (like winAPI calls from win c#)..
Che...
I am surprised I could not find this question already asked, so if I simply missed it please notify promptly.
I need to write a very small, fairly simple application in .NET that will be downloaded by end-consumers and installed on their system. Silverlight's sandbox model will not work - it has to be a full-on downloaded, installed exe...
What do I need to do to have my .NET-Mono application run as a background process on OSX and start when the OS starts up? (Assuming the application is otherwise ready to go on OSX)
Related
Build an installer for .NET app that can run on Windows and OS X?
...