I’m trying to run a C# application in a ubuntu Docker container with mono. The application runs correctly in a windows environment. I just copied all the directories to the docker volume. I can build the application using the following command without errors or warnings: msbuild CSharpSampleLSV2.csproj /t:Rebuild /p:Configuration=Release /p:Platform=”x86″ But when I try to run the application using the
Tag: c++
DMA Engine Timeout and DMA Memory Mapping
I am trying to use a Linux DMA driver. Currently, when I send the transaction out and begin waiting, my request times out. I believe this has to do with the way I am setting up my buffers when I am performing DMA Mapping. In Xilinx’s DMA driver, they take special care to look at memory alignment. In particular, they
C# .net Core – Get file size on disk – Cross platform solution
Is there a way to have a common logic to retrieve the file size on disk regardless of the underlying operating system ? The following code works for windows but obviously doesn’t for Linux. Alternatively, I’m looking for a similar implementation that would work on Linux. Can anyone point me in the right direction ? Thanks for your help !
setsockopt usage in Linux and Solaris [Invalid argument in Solaris]
I’m trying to use setsockopt() on both Linux and Solaris in my ftp program. Linux uses a long for optvalue as a parameter, but Solaris uses a char instead. The program works fine in Linux, but reports “Invalid argument” in Solaris when creating the socket. Answer There are 2 issues appearing in the question: Linux uses a long for optvalue
How to make the SIGSEGV handler be launched on an alternate stack for stack overflow case only?
My app uses a SIGSEGV (Segmentation Violation) signal handler (registered with sigaction()). When my app accesses a NULL pointer, my SIGSEGV handler gets a control, prints (to the console and log) the stack trace of the offending thread, and invokes the default signal handler which results in the core dump (crash dump) generation. So when a crash is reported by
Segmentation Fault in pthreads, Linux Ubuntu
I’m getting a Segmentation Fault when I run this code. Surprisingly, when I set thread_count to 16 or less, it doesn’t give any error. When I debug the code using gdb, the code gets an error at line local_answer += vec_1[j] * vec_2[j]; in the Calculate() thread function. What is the reason for this behavior? How can I fix that?
setpgid for Child Zombie Process Gives ESRCH instead of EACCES?
According to the man setpgid(2) page, EACCES An attempt was made to change the process group ID of one of the children of the calling process and the child had already performed an execve(2) (setpgid(), setpgrp()). ESRCH For getpgid(): pid does not match any process. For setpgid(): pid is not the calling process and not a child of the calling
OpenCV different results on Windows and Linux
I’m writing a cross-platform wrapper for OpenCV on rust. And I wrote several tests to check that my wrapper is working correctly. Some tests are passing, some tests are failing with slightly different values, but one test has completely different results. Right number is what I get on windows, left – on linux I tried to reproduce code from this
One way communication over TCP Socket [closed]
Closed. This question needs details or clarity. It is not currently accepting answers. Want to improve this question? Add details and clarify the problem by editing this post. Closed 5 years ago. Improve this question I am trying to send some data to a remote Raspberry Pi over TCP socket from a GUI that I designed with Python. I’ve implemented
Is it necessary to flush a QTextStream before closing a QFile?
I need to log some text messages to a file with following requirements : Each text messages is written in a new line at the end of the file. Be reasonably sure that each message was correctly written to the file. So far, the function is using QTextStream and QFile: Point 1 is satisfied but i have doubts about Point