Questions tagged [handles]

175 questions
6
votes
1 answer

How can I add sizing handles to a UIView?

I'm trying to dynamically create views (UIImageView and UITextView) at runtime by user request and then allow the user to move and resize them. I've got everything working great, except for the resizing. I tried using the pinch gesture recognizer,…
Lastmboy
  • 1,849
  • 3
  • 21
  • 39
6
votes
3 answers

Is it safe to "double-close" a handle using CloseHandle?

What are the implications of calling CloseHandle more than once? The docs say "you shouldn't" but I think I have a realistic case with named pipes where a handle might be closed externally (See end of post). CloseHandle throws an exception in debug…
John
  • 1,974
  • 2
  • 25
  • 32
6
votes
2 answers

jQuery UI resizable handle hit area / sensitivity / tolerance

I'm using jQuery ui resizable and I (personally) find that it's like a video game to nail the hit area of when you're trying to resize an element. It seems like the hit area is a single pixel on the edge of the div! WT... Does anyone know how to…
Kirk Ross
  • 6,413
  • 13
  • 61
  • 104
5
votes
5 answers

Does C# have a Handles keyword?

Protected Sub Menu1_MenuItemClick(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.MenuEventArgs) Handles Menu1.MenuItemClick End Sub In VB.net, we have the Handles keyword, I'm wondering if C# has anything comparable. Or do you have…
dotnetN00b
  • 5,021
  • 13
  • 62
  • 95
5
votes
2 answers

SWT - How to debug "No more handles"

from time to time I am haunted by the "org.eclipse.swt.SWTError: No more handles". I already know tools like GDIView, to watch the number of handles allocated, but now I wonder if there is a better way to do this. Is there a tool available? Maybe…
Daniel
  • 27,718
  • 20
  • 89
  • 133
5
votes
3 answers

FFplay successfully moved inside my Winform, how to set it borderless?

with this code: Show a tcp video stream (from FFPLAY / FFMPEG) in an C# application I successfully grabbed FFmpeg output inside my c# winform. By changing args is also possible to play video directly (without streaming)... here my complete (short)…
WizardingStudios
  • 554
  • 2
  • 7
  • 22
5
votes
5 answers

Handles being released corrupted somehow?

Strange problem. Maybe someone can give some insight. Scenario 1. I have a TBitmap in memory that is written to while complex calculations take place to calculate the color of each pixel. Every so often (usually after every horizontal line that…
TallGuy
  • 61
  • 2
5
votes
2 answers

jquery resizable handles on all sides not showing

I am trying to put handle on a jquery resiazble box on the 4 sides and 4 corners. I can get them on 4 sides no problem and the top corners but for some reason the bottom corners are playing up and I cant see for the life of me what I am doing…
Barry Watts
  • 784
  • 2
  • 14
  • 43
5
votes
1 answer

Does WithEvents in Visual Basic keep its EventHandlers when changing the reference to the object?

Does WithEvents in Visual Basic keep its EventHandlers when changing the reference to the object? Say I have declared a button, firing events: Private WithEvents _MyButton Now I am subscribing to an event handler: Private Sub _MyButton_Click()…
serhio
  • 28,010
  • 62
  • 221
  • 374
4
votes
2 answers

Memory/Handle/Gdi leak utility

I remember from past having a utility that would allow to leak various system resources, such as memory, handles and gdi. It had a small dialog where one would choose what to leak, it was nice for system stress testing.. I don't remember whether it…
Jack Juiceson
  • 830
  • 4
  • 12
  • 24
4
votes
4 answers

How do I find where my .Net app is leaking Windows handles?

I've got a WinForms .Net app that runs over a lot of XPS documents (thousands) and during this run the number of handles (according sysinternals process monitor and task manager) increases by between 3-10 for each document. I heavily suspect that…
Ryan O'Neill
  • 5,410
  • 4
  • 46
  • 69
4
votes
2 answers

Import figures to MATLAB GUI using handles?

How can I literally take these figures and place them in the axes windows of my GUI? I am not sure where to place handles in my user-defined code in the example below. I have 4 figures in total which look similar to this example. I want the 4…
loco
  • 321
  • 1
  • 4
  • 18
4
votes
1 answer

How to reach data stored in handles in a ButtownFcn?

I am trying to compare the click-obtained coordinates with a loaded matrix MT. I wrote a "loadMT" function to load the matrix MT, stored it into handles, and when it's finished it gives this(which I believe is a sign that MT has been stored in…
Suicide Bunny
  • 894
  • 1
  • 10
  • 23
4
votes
1 answer

Java handles (mutex ?) are leaked and not released (not file handles)

I have a complex Java application that runs for a long time. the application does the same operation, with little nuances, over and over again. My problem is that Windows task manager shows a lot of leaking handles for the java process (not file…
amnong
  • 41
  • 1
3
votes
2 answers

VB [(Function) handles ...] equivalent in Delphi

Say we had something like Private Sub ClickObject(ByVal sender As System.Object, ByVal e as System.Eventargs) Handles Object1.click, Object2.click, Object3.click Which takes the event after the 'Handles' and sends them to the function. Is there an…
Skeela87
  • 701
  • 6
  • 12
  • 17
1
2
3
11 12