Tag: arm

Windows -1252不支持编码名称。 C#

我正在使用Windows 10 Universal App和ARM CPU为Raspberry Pi创建应用程序。 编码时出现以下错误: 附加信息:’windows-1252’不是受支持的编码名称。 有关定义自定义编码的信息,请参阅Encoding.RegisterProvider方法的文档。 这是我的代码。 private async void Login(string passcode) { try { MySqlConnection conn = new MySqlConnection(“Server=127.0.0.1;Port=3306;Database=database;Uid=username;Pwd=password;SslMode=None;charset=utf8”); MySqlCommand cmd; conn.Open(); cmd = new MySqlCommand(“Select * from users where User = ‘” + passcode + “‘”, conn); MySqlDataReader dr; dr = cmd.ExecuteReader(); int count = 0; while (dr.Read()) { count […]

ARM linux上的Mono

我已经在ARM9处理器上为嵌入式Linux交叉编译Mono。 但是当我尝试编译我的第一个c#程序“Hello world”时,我从Mono收到这个输出: Native stacktrace: Debug info from gdb: ================================================================= Got a SIGSEGV while executing native code. This usually indicates a fatal error in the mono runtime or one of the native libraries used by your application. ================================================================= Aborted 我用谷歌搜索,但我的问题太通用了。 有人可以解释这个问题吗? 我可以在pc上交叉编译示例文件(使用Mono-arm编译器)在嵌入式arm上运行二进制文件吗? 我会尝试在没有Mono-debugger的情况下重新编译。 谢谢