mono

Repopulate a combo box

橙三吉。 提交于 2019-12-24 09:20:46
问题 This is how I populate the combo box: foreach(string s in entries) { string[] fields = someSplit(s); threadComboBox.AppendText(fields[0]); } How would I remove all items and add new ones? I tried calling Clear() , but while it does remove old values, new ones don't get added. 回答1: try threadComboBox.Clear(); ListStore store = new ListStore(typeof (string)); threadComboBox.Model = store; foreach(string s in entries) { string[] fields = someSplit(s); store.AppendValues (fields[0]); } 回答2: The

Referring to DNSSDObjects in dns_sd.h and DNSServiceResolve in MonoTouch

China☆狼群 提交于 2019-12-24 08:58:31
问题 I want to add reference to DNSSDObjects to a project in MonoTouch, specifically DNSServiceResolve object. I want to access DNSServiceResolve in a MonoTouch project but cant find that class anywhere. How can that be done ? 回答1: I got the functions from dns_sd.h working with P/Invokes. Most of the definitions were already done in the project zeroconfignetservices [1], specifically in the file mDNSImports.cs. Instead of referencing dnssd.dll , it is /usr/lib/system/libsystem_dnssd.dylib on iOS.

MonoMac / Xamarin.Mac binding simple dylib not working

笑着哭i 提交于 2019-12-24 08:43:26
问题 I'm trying to bind some native code for use in MonoMac / Xamarin.Mac, but I'm not sure where I'm going wrong. I create a simple dylib to test with: nativelibrary.h : - (NSString *)echo:(NSString *)message; I know that my library is fine, because I reference it and use it in an Objective-C / Cocoa application. Next, I try to generate the initial binding file using parse.exe: mono parse.exe [path...]/nativelibrary.h Problem #1 No 'gen.cs' file is generated as per Miguel's guide Problem #2 Parse

Mono Cross Platform AOT (Ahead Of Time) compiling

两盒软妹~` 提交于 2019-12-24 08:29:34
问题 After compiling my Mono application on the host (x86-64) I have to copy the resulting executable to my target (AARCH64). On the target I have to run mono with the '--aot' option to improve run time performance. That's anoying, since I have to do that for every target device. Is it possible to run AOT compilation on the host for the target in a cross-compile maner? Best regards -Carsten Update: It is possible to run a cross plattform command with qemu. E.g. for ARM: http://tuxthink.blogspot

Xamarin Forms - how to fix broken build? (seems like FormsMap broke it)

不羁岁月 提交于 2019-12-24 08:28:31
问题 After installing Xamarin Forms Map, I am now getting this. I've tried to remove everything I added (the init, changes to the Manifest, etc). Gone from a working solution to a broken one that won't even compile. Appreciate any suggestions Tried to install current version of Xamarin.Forms.Map : 2.3.3.180 /Library/Frameworks/Mono.framework/External/xbuild/Xamarin/Android/Xamarin.Android.Common.targets (_GenerateJavaStubs target) -> /Library/Frameworks/Mono.framework/External/xbuild/Xamarin

monodevelop 3.0.4.2 on windows and mono.2.10.8 issues with MVC4

穿精又带淫゛_ 提交于 2019-12-24 07:54:56
问题 I'm happily bin deploying an mvc4 beta website with monodevelop to appharbor on my mac and its a nice experience. However I decided to fire up my windows machine and use the same tooling to work on windows and well its not quite as smooth. Debugging using the monosoft debugger I get the following error: System.Net.WebException: The request timed out at System.Net.HttpWebRequest.EndGetResponse (System.IAsyncResult) [0x00046] in C:\cygwin\tmp\monobuild\build\BUILD\mono-2.10.8\mcs\class\System

DbLinq and Mono 2.4: Working Together?

可紊 提交于 2019-12-24 07:43:32
问题 Hopefully this is a silly question and there's really a simple solution somewhere out there but... Has anybody successfully gotten DbLinq to play nicely with Mono 2.4 on Mac OS X 10.5? I've got my SQLite database ready but for the life of me, I can't find sqlmetal to generate my objects. I'm guessing I might have to download a previous version of Mono that included sqlmetal, build and install it, and then just use the code generated from that version on Mono 2.4...but I'm hoping to avoid it

Declarations of p/invoke for file io and pseudo terminal

别等时光非礼了梦想. 提交于 2019-12-24 06:57:43
问题 i want to use the file io functions (open, read, write) and the pseudo-terminal(http://linux.die.net/man/4/pts) functions (grantpt, unlockpt, ptsname) from mono. translating the arguments and return values is trivial (still, i would appreciate it if you could verify them) but i can't find the corresponding librarys. My linux distribution is Arch Linux on ARM (Raspberry PI). As the ARM Platform is only 32-Bit, i can just use int32 for int/size_t, etc Thank you very much. internal class

Using System.Net.HttpRequest::EndGetRequestStream

…衆ロ難τιáo~ 提交于 2019-12-24 06:38:02
问题 I'm using MonoDevelop 3.1.1 and Mono runtime 3.0.12 I'm trying to work with one of Google.Apis samples (Tasks.ETagCollision for example) on that platform, without any success. I fixed all NuGet references so the sample runs, but when I'm trying to create a request to the server using the sample code, I'm getting the following error: Missing method System.Net.HttpWebRequest::EndGetRequestStream(IAsyncResult,TransportContext&) in assembly /Library/Frameworks/Mono.framework/Versions/3.0.12/lib

Is there a messaging system for .NET+Mono with no external dependency?

和自甴很熟 提交于 2019-12-24 04:54:13
问题 I'm looking for a simple messaging system for .NET, that run as a library with no external dependency. The requirements are simple: I'd like to be able to call an external HTTP service, and if that service is offline or not responding for some reason, the system should queue the messages for later or discard previous and keep only the latest message, regular messaging stuff. But I'm looking for something that: Runs on Mono/linux Free/open source Have no external dependency, it should run as