Top "Handle" questions

Handle is an abstraction of a resource or a reference to an entity.

C# compile error: "Invoke or BeginInvoke cannot be called on a control until the window handle has been created."

I just posted a question about how to get a delegate to update a textbox on another form. Just when …

c# delegates invoke handle runtime-error
How to find that Mutex in C# is acquired?

How can I find from mutex handle in C# that a mutex is acquired? When mutex.WaitOne(timeout) timeouts, it …

c# synchronization pinvoke mutex handle
How do I find the handle owner from a hang dump using windbg?

How do I find out which thread is the owner of my Event handle in windbg: I'm running !handle 00003aec …

windbg deadlock handle
what is a file handle and where it is useful for a programmer?

I am learning assembly language along with C. this new chapter I started talks about 'file handles', file handles for …

file assembly handle
lseek/write suddenly returns -1 with errno = 9 (Bad file descriptor)

My application uses lseek() to seek the desired position to write data. The file is successfully opened using open() and …

c file-io handle seek
How to get a HWND handle out of a System.Windows.Forms.Form

Given the form System.Windows.Forms::Form Form1; and the window handle HWND hWnd; How can I set hWnd to …

winforms visual-studio visual-c++ handle
Freeing java file handles

We have a rather large and complex application written in Java which is running on top of the Gridgain package. …

java file io handle gridgain
How to capture mousemove events beneath child controls

I am trying to handle a mouseclick event on a particular form that should fire if the mouse cursor falls …

c# winforms events handle mousemove
Determine path to registry key from HKEY handle in C++

Given a handle to a Windows Registry Key, such as the ones that are set by ::RegOpenKeyEx(), is it possible …

c++ registry handle
DLLImport -> how to handle a HANDLE in C#

in my C# code I want to import a C++ DLL. I use the dllimport and it works fine with …

c# c++ dllimport handle intptr