Skip to content
Advertisement

Tag: c++

View CIL of C# code on Linux with mono

I want to inspect the generated CIL code of the following C# source file on Linux: When I compile and run it everything is fine: But how can I get the human readable CIL output? Answer Mono disassembler, extracts IL code from an assembly: Full reference can be found here: https://www.mono-project.com/docs/tools+libraries/tools/monodis/ Dis/Assembling CIL Code (Mono Project)

mistake in cin.getline() to develop a shell

I am developing a limited version of shell for my self. Here is a C++ program What I am not able to understand is when I compile this program I am getting error in line and the error is following I do a $ g++ p3.7.cpp What is the mistake above I am doing. Do I need to include some

C – invalid conversion from ‘void*’ to ‘void (*)()’

I am getting the following when I try to compile my program: These are the lines of code that are causing the errors: What am I missing? Answer You have void *function but void* is not a correct type of a function pointer. void (*)() is a type of a function pointer, so probably you should change your function signature:

Kill all processes from C in Linux

I am writing a Linux C program that will be executed as init. It will eventually need to shut down the system. I have code for unmounting all the filesystems and actually turning off the system; now I just need a way for it to send SIGTERM to all processes, sleep(5), then send SIGKILL to any remaining processes. Answer If

Enable a linux service to show popup window

I developed an IP messenger using C language and I wish to share some of it’s implementation details to make completely understand my problem. Used GTK+-2.0 library for showing GUI windows. It has a listening socket and whenever a new connection arrives then it will create a new process to serve the connection. Whenever a new message arrives then it

Segmentation fault on memcpy() function [closed]

Closed. This question needs debugging details. It is not currently accepting answers. Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question. Closed 4 years ago. Improve this question I have the following memory base address which contains some data of 256

Advertisement