Tag Archives: linux

in linux, mono invoke my .so lib return System.EntryPointNotFoundException

Questions: here is my c++ code #include “_app_switcher.h” std::string c_meth(std::string str_arg) { return “prpr”; } my mono code: [Test] public void TestDraft() { Console.WriteLine(c_meth(“prpr”)); } [DllImport(“/home/roroco/Dropbox/cs/App.Switcher/c/app-switcher/lib/libapp-switcher-t.so”)] private static extern string c_meth(string strArg); the err output: System.EntryPointNotFoundException : c_meth at (wrapper managed-to-native) Test.Ro.EnvTest.c_meth(string) at Test.Ro.EnvTest.TestDraft () [0x00001] in /home/roroco/Dropbox/cs/Ro/TestRo/EnvTest.cs:15 at (wrapper managed-to-native) System.Reflection.MonoMethod.InternalInvoke(System.Reflection.MonoMethod,object,object[],System.Exception&) at System.Reflection.MonoMethod.Invoke (System.Object… Read More »

How does linux discover and enumerate devices?

Questions: When booting (or when something is plugged in), how does linux discover that devices exist? More specifically, I’m looking to figure out what creates the ordering that is present. My current hunch is that it walks through and probes PCI addresses, starting from either the highest or the lowest, and that orders it. For… Read More »

Android Studio Getting Crash on Linux

Questions: i’m using linux mint. now i’m facing this problem i can’t even find solution. hope someone help me here. System configuration. *Operating System : Linux Mint 19 Cinnamon Cinnamon Version : 3.8.7 Linux Kernal : 4.15 Processor : AMD FX(tm)-8150 RAM : 8GB* here is crash details. # # A fatal error has been… Read More »

String utils split – linux

Questions: Below Java code works in Windows machine filepath = “euro\football\france\winners.txt”; String[] values = StringUtils.split(filePath, “\\”); if (values != null && values.length >= 4) { } else { //error } But facing issue in linux while executing the code. if loop is not executing, else loop is executing. Do we need to give split as… Read More »

linux java mysql source command Unknown database

Questions: I’m using Java on Ubuntu to connect mysql server this is the java code: Runtime.getRuntime().exec(“mysql -u user -ppass -e \”source filename “\””); but it always gave me this error ERROR 1049 (42000): Unknown database ‘filename’ It worked in windows 10 and by directly command “mysql -u user -ppass -e “source filename ” in the… Read More »

Character encoding errors with .NET Core on Linux

Questions: This has been driving me batty for days, and I’ve finally got it down to a simple, reproducible issue. I have a NUnit test project, which is .NET Core 2.1. It references a library (let’s call it “Core”) which is .NET Standard 2.0. In my test project: [TestCase(true, false)] [TestCase(false, false)] [TestCase(false, true)] public… Read More »

.NET Core Linux Key Exchange Diffie Hellman [on hold]

Questions: I have a custom communication library using ECDiffieHellmanCng for key exchange to support an encrypted communication channel, which I want to port to .NET Core and run on Linux (ARM). For the Windows version, the .NET Core version works fine, but the Linux gets the ‘OperationNotSupportedException’ since the ECDiffieHellmanCng depends on native windows calls.… Read More »

How does linux discover and enumerate devices?

Questions: When booting (or when something is plugged in), how does linux discover that devices exist? More specifically, I’m looking to figure out what creates the ordering that is present. My current hunch is that it walks through and probes PCI addresses, starting from either the highest or the lowest, and that orders it. For… Read More »