Questions tagged [handle]
Handle is an abstraction of a resource or a reference to an entity. It can have different implementations: a pointer, an index in a table etc.
1,316
questions
1
vote
1
answer
33
views
Pyqtgraph ROI Mirrors the Displayed Text
I want to display some text close to the handles of crosshair ROI. The text is mirrored and I don't know why or how to fix it.
The following code runs, where the class CrossHair is a slight ...
1
vote
1
answer
14
views
Whats the difference between open and native handle in c#
I am looking for the difference between
IntPtr handle_1 = process.Handle;
Gets the native handle of the associated process.
[DllImport("kernel32.dll", SetLastError = true)]
public static ...
0
votes
0
answers
30
views
How to find xpath in a new window handle
My site has a button that opens a new window handle.
I recognize the new window handle and switch to it.
when I try to inspect elements on this new handle I must press F12 and the DevTools open in a ...
0
votes
0
answers
44
views
How to use ReadConsoleOutput func with redirected console?
I have programm that executes command by creating a new process in new console window. So after writing command in console by WriteFile func i get HANDLE of this window and try to read its output. ...
-1
votes
1
answer
64
views
How to get process SID from its handle?
Consider I have the following handle for process:
HANDLE hProcess = OpenProcess(PROCESS_ALL_ACCESS, FALSE, entry.th32ProcessID);
How can I get process's SID? It's necessary as I need to give ...
0
votes
1
answer
32
views
How to correctly handle tcp stream and split by lines in python?
I am using the code below to handle the date coming in from tcp connections. But sometimes, on slower connections, the data is not correctly split into lines and i get handle_line() called with half ...
0
votes
0
answers
27
views
React - Handle clicking a button to display some text
I map buttons and need them to display text once clicked. I use an ID state to grab which key was clicked and then the classname should display that text, and should only display one description at a ...
0
votes
0
answers
51
views
VBA: save handle, open browser, do stuff, then close window?
Trying to programmatically open a browser from VBA (success) and then close it again using the handle (where I am stuck).
I found this post:
Access VBA to Close a Chrome window opened via Shell
but it ...
0
votes
0
answers
27
views
Flutter Refresh Token Problem with Future.wait([])
I need help with a problem that I haven't been able to solve for a long time. It might be a little long, sorry in advance.
I am using such a base for all http requests in my project.
class BaseService ...
2
votes
1
answer
87
views
Why does reopening stdout to a newly-allocated console occasionally fail?
Consider this program:
#include <windows.h>
#include <stdio.h>
#pragma comment(linker, "/SUBSYSTEM:CONSOLE")
int main(void) {
if (!FreeConsole()) {
MessageBoxA(NULL,...
1
vote
0
answers
15
views
Remove Screen is pinned popup
I'm using Activity.startLockTask() for lock my app, but when I start startLockTask(), it showed popup like under.
I tried solution:
Use accessibility for handle Got it button, and perform a click on ...
0
votes
0
answers
32
views
List all children form titles of an application [duplicate]
I create a WinForms application that consist of two forms (MainForm and SecondForm).
When the application is executed, there will be three forms on screen.
public partial class MainForm : Form
{
...
0
votes
2
answers
26
views
CUDA Virtual memory on Windows - what is the handle type?
From the CUDA driver API documentation:
enum CUmemAllocationHandleType
Flags for specifying particular handle types
Values
CU_MEM_HANDLE_TYPE_NONE = 0x0
Does not allow any export mechanism.
...
0
votes
0
answers
45
views
Do I have to specify handles to be inherited with PROC_THREAD_ATTRIBUTE_LIST when using CreateProcess in threads?
I'm writing a program that spawns multiple child processes simultaneously and communicates to each of them by redirecting their stdin/stdout to anonymous pipes (as described here).
This is my actual ...
0
votes
2
answers
32
views
Python - how to correctly implement TypeError
try:
Name = input("enter name")
except TypeError:
print("Please enter letters")
Even when I enter numbers, the message doesn't print.
-1
votes
1
answer
74
views
Windows Forms Control.CreateControl() equivalent in WPF
normally I use UserControls from WinForms and can then have them created with the CreateControl() method and displayed in another application. But now I wanted to try this with WPF. But there I can't ...
0
votes
1
answer
64
views
C/C++ NCURSES, get all characters typed in a WINDOW
What I'm trying to achieve (more than “to reproduce”):
In other projects (not TUI contexts) I've used several GUI toolkit (wxWidgets, wxPython), etc. (just to name a few)), and most of the time they ...
0
votes
2
answers
115
views
Remove text from textarea after form submission React
I have a form that is sending an email once user has clicked submit but the text is still staying in the text area. What can I do to clear the textarea once form has been submitted?
import "./...
0
votes
0
answers
49
views
List Windows process memory handle
I would like to list all the memory blocks allocated within my own process. (GlobalAlloc, HeapAlloc, CoMemAlloc)
Memory address, size.
Possible?
0
votes
1
answer
421
views
Liquid - Load all products from collection handler not working
I am trying to load all products by the given handler from a collection.
They will click on a box (each box is a different collection), then it should load all products for that collection.
My issue ...
2
votes
0
answers
71
views
Weird resource leak related to gulpfile or git or cmd prompt
I have a gulpfile in a project directory. I use gulp frequently and this file is similar to my different gulpfile's that I've used many times before.
I first became aware of this problem when I tried ...
0
votes
0
answers
121
views
winapi get handles opened to current process
Is there any way to get all of the handles that have been opened to the current process on Win10?
I have seen NtQuerySystemInformation but SystemProcessInformation only returns handle count and not ...
0
votes
0
answers
19
views
Kill all subprocesses that are using a file
So I have a (Python) script that creates subprocesses in separate threads. And sometimes, when it's all finished, somehow ghost threads are left hanging and the have a handle on some files which I'd ...
1
vote
0
answers
143
views
Passing the channel into a handle function with Context.WithValue
I would like to use a channel for managing the global shared variables (something like: map[string]MyStruct) into my serverApp (as I know it's more "go way" rather than use sync.Mutex). I ...
0
votes
0
answers
20
views
A global handle is closed unexpected in a windows app
In my windows C++ program, it has a global file handle, the handle will always keep open during the process lifecycle.
Recently, the app encountered a problem when it is run in a complicated ...
0
votes
0
answers
93
views
Matlab: Is there a way to evaluate a function handle with a variable length input vector?
Imagine you have the following easy code
vec=rand(p,1); % p can be anything
h = @(x_1,x_2,...,x_p) a*x_1+b*x_2+...k*x_p; % function handle with p scalar inputs
I want to evaluate h using the vector ...
1
vote
0
answers
26
views
Safely store handle along side buffer
I'm writing a custom allocator acting as bridge between regular c++ code and a library performing its own memory management. This library identifies memory locations by a handle which we need for all ...
0
votes
0
answers
233
views
how to use a handle in VB.net to access forms in another process?
I want to get a structured list of ALL processes on my Computer and all their Forms and and all their controls and so on - I am working with VB.net in Visual Studio 2017 - here is my code:
For ...
0
votes
1
answer
53
views
Value Changed in Class B calls function in Class A to update object of class A
I want to call a function from a class A inside another class B. However, it should be called for an object of A. I mean if I have something like this:
class A:
def __init__(self, ....):
...
0
votes
1
answer
56
views
Process handles monitoring
I'm banging my head against the wall to come up with a solution/tool to monitor process handles.
I know there's process explorer and handle from sysinternals tools but what I'm trying to achieve here ...
0
votes
0
answers
25
views
How to stop a specific remoteapp process using powershell?
I have a script which kill all processes that has access to a specific path.
if a word data with the name "wordone.docx" and a excel sheet with the name "excelone.xlsx" is opended ...
0
votes
0
answers
70
views
CreateConsoleScreenBuffer returning invalid but not INVALID_HANDLE_VALUE handle
I'm creating a new console screen buffer and trying to set it as the active screen buffer of a new console created via CreateProcessA(), but when the new console is created it shows something like &...
3
votes
0
answers
87
views
CEdit SetFont always creates a GDI HFONT handle, even for shared fonts
In our C++/MFC MDI application, each MDI client window contains a form based on CDialog that can contain very many controls, even hundreds of them. We have noticed that we run out of GDI handles ...
1
vote
0
answers
87
views
Redis handles are increasing after 4-5 days and causing the process to go non-responsive
We were facing an issue with port exhaustion on Windows Server 2019. After troubleshooting we found out that redis-server.exe was using handles more than 16000. We referred to the link - https://docs....
0
votes
1
answer
107
views
PyQtGraph PolyLineROI maxBounds Not Working
I have a PolyLineROI in a PlotItem and am trying to limit the handles to moving only within the bounds of the plot. I have tried to use the maxBounds argument, but this does not work (the handles ...
0
votes
0
answers
125
views
Get file locking handle
I would like to close the handles of all processes that access a certain file. To retrieve the processes, I use the solution of Eric J. in this thread. Now, unfortunately, it does not work to close ...
0
votes
2
answers
130
views
How to get winapi thread HANDLE from QThread?
I would like to use CancelSynchronousIo() function, so I need a thread handle. In my QT app I have two threads: mainThread ( gui ) and secondThread for calculations. I would like to use ...
0
votes
1
answer
50
views
Can anyone help me to get handle of process which is called by func Process.Start();?
For example, I wanna get handle from browser.
private void button1_Click(object sender, EventArgs e)
{
Process.Start("https://google.com/");
//How to get ...
1
vote
0
answers
103
views
handle errors about DefaultcacheManager flutter
App should download a video via mobile network. I control the internet connection with connectivity_plus package. but when internet connection become weak, I am getting this error at var file = await ...
0
votes
3
answers
104
views
my state is not getting value into it REACT
I added two handlers to my code. First, mail is entered and handleStart is started, then the user name and password are obtained from the user, and then when the button is pressed, handleFinish is ...
0
votes
0
answers
24
views
Problem while Saving/Copying graphic handles to an array in MATLAB
I am trying to save n number of graphic handles to a (cell)array in a loop. (so that I can change each item visibility later using array index)
The problem I face:
Every time the loop iterate and add ...
1
vote
1
answer
222
views
TwinCat3 - TCP/IP disconnects randomly
I am using following code to set up a TCP IP server. I am connecting to it from my laptop by using hercules. For a reason I don't understand, it disconnects after a random amount of seconds between 1 ...
0
votes
1
answer
42
views
How to remove from a series of list the same column
My apologise for the banality of the question.
I have a series of list elemnts - all embedded within the same object - where I would like to remove always the same object:
>[13]>
$P3FCz
# A ...
-1
votes
1
answer
26
views
avoiding duplicated queries in job handle function
this handle function counts the number of available cities and areas to each state, then saves the results in a log file
need to avoid the duplicated queries in this function
public function handle()...
1
vote
1
answer
72
views
!htrace only shows 14 callstack frames (callstack too short)
I try to use !htrace to detect some handle leaks (I enable before in gflags user mode callstack)
The problem is that even though it shows me callstacks of handle allocation their size is limited to 14 ...
0
votes
0
answers
34
views
Nodejs Error: Cannot read property 'writeQueueSize' of null
I am getting the following error on my node-express https server. The error comes up every 4-5 minutes. It seems that it is coming from one of the response statements (res.send)
I am using Node ...
0
votes
0
answers
92
views
How to handle 'NoneType' object is not subscriptable in python
In the following code how I can handle t[4].find("a")["href"].split('/')[4] if is null or not available!
Note: this code is in extend block.
PlayersTransferhistoryResult.extend([
{...
-1
votes
1
answer
143
views
C# - Check if Handle is active
There is a Task Manager alternative called "ProcessHacker".
With that you can check if a Handle is active and running.
I would like to add something like that into my C# program, searching ...
0
votes
0
answers
122
views
How get a file handle for the current directory
I am using showSaveDirectoryPicker() in a client-side app and want to use the 'startIn' parameter so that the user does not have to work down through a large file system. Such as in the following:
...
0
votes
0
answers
48
views
Firefox reporting problems with window handles
I'm currently testing a webdriver script in Firefox 93, using gecko driver 30. I'm opening a link in a new window, and want to switch to it and close it. Everything is fine in chrome, but in firefox, ...