All Questions
995
questions
0
votes
0
answers
24
views
Enabling Efficiency Mode (EcoQoS) for a Process by PID in C++ and Verifying in Task Manager
I'm trying to enable Efficiency Mode (EcoQoS) for a process given its process ID (PID). I have referred to this similar question on Stack Overflow, but I'm still facing issues.
Issue:
Although the ...
0
votes
0
answers
9
views
.NET solution that uses third party hardware and DLLs
My team and I are writing a .NET application to run in a Windows environment.
We will be using hardware from four-ish different vendors, that each comes with their own dll (the term is unmanaged dlls, ...
0
votes
0
answers
29
views
.NET Process.OutputDataReceived still receiving data after unsubscribe the Event Handler and Kill the Process
Please. I need to read data from a process asynchronously because sometimes data is received indefinitely and cannot be read synchronously. When I have read enough characters, I unsubscribe from the ...
0
votes
0
answers
13
views
Is it possible to mock services in component tests?
I need to develop a microservice that needs to receive an event. If the data update was successful, then you need to forcefully kill the process(Process.Kill()). Otherwise, send to the message broker ...
0
votes
0
answers
16
views
.Net - How to check if process is app or background in system space? [duplicate]
The question is in addition to below question.
.NET How to check if a Windows process is running as an "App" or as a "Background application"
I have a requirement to list down all ...
0
votes
0
answers
28
views
Unable to start linux process inside dockerized app
I am trying to start linux process however I am getting error:
An error occurred trying to start process '/app/bin/x64/Debug/net8.0/SeedNKey32BitCliInterfaceLinux32' with working directory '/app'. No ...
0
votes
0
answers
46
views
C# console app crashes when running batch file which exist in different directory
I have a batch file, which I need to run from my c# application. Batch file location is different from my c# console app exe location.
I'm trying below code, my c# console app crashes after calling ...
2
votes
0
answers
60
views
Can Process.Exited event get fired but the process hang in the system?
I'm facing the following situation.
I have a process that gets crashed constantly. Mostly it crashes 0xC0000374 error code. However, after hundreds of crashes, another one occurs which does not result ...
0
votes
0
answers
33
views
Powershell script can not run when invoke in .NET process
I have one question about Powershell can not run through inside .NET Process.
I have the following Powershell
$livingDocPath = "C:\Users\chris\.dotnet\tools\livingdoc.exe"
$dllPath = "...
0
votes
0
answers
56
views
Process.Start finished with exit code 1
`Start.Process always returns 1 instead 0. I am not getting where is an issue. It is calling the start process with some arguments specified below. I have checked it online about the exit code status. ...
0
votes
1
answer
63
views
Execute a cmd.exe command with a delay from a WinForms app
I'm working on a very simple desktop app that needs to be auto-updateable by itself, I can't use ClickOnce since the instalation path must be always the same (i.e. C:/app/myapp.exe).
My app checks for ...
1
vote
2
answers
125
views
Why does .Net change the Process.MainWindowHandle?
I created a new Windows Forms App in Visual Studio and added the following code to it:
new Form1().Show();
By calling this code, the Process.MainWindowHandle of my process, reported by Process....
1
vote
1
answer
212
views
Running c# Process with higher privileges and password in Linux
I'm trying to run a c# (.net6) process with higher privileges in Linux with a password that has a dollar sign ($) and it always fails.
I've tried:
var stInfo = new ProcessStartInfo
{
FileName = &...
0
votes
0
answers
34
views
Plug-in dependencies conflict in a windows process
I'm creating plug-in for a main windows process. Those plug-ins are assemblies (dll) which shared the same dependent assemblies but using different version as both plug-ins were not released in the ...
1
vote
0
answers
70
views
Disable Warnings when executing python code from C# with process class
I'm running a sample Python script through the command prompt:
import warnings
print('Hello, world!')
warnings.warn('Geeks 4 Geeks !')
Executing script file with warnings:
python first_script.py ...