Questions tagged [handles]
175 questions
2
votes
2 answers
Having several file pointers open simultaneaously alright?
I'm reading from certain offsets in several hundred and possibly thousands files. Because I need only certain data from certain offsets at that particular time, I must either keep the file handle open for later use OR I can write the parts I need…

ruffiko
- 21
- 1
2
votes
1 answer
VB.NET Web application Import/inheritance/withevents problems?
I've inherited this VB web application.I'm trying to build the project file and expect that it will eventually compile but right now it has a few pages that come up with wierd things like "Import Classxxx not found" even though I can go to it via…

user3139900
- 21
- 2
2
votes
1 answer
Nested Bluetooth callback in Matlab GUI
I know the Matlab GUI callbacks have been discussed here hundreds of times, but I think I ran into a special problem.
I know how to share data between the different GUI callbacks (I use the handles-structure as described in the documentation). I…

Andy
- 23
- 2
2
votes
1 answer
show structure of handles while programming in matlab
Is it possible to see the structure of my struct variables while I'm programming?
I'm programming in matlab gui. I store my variables in the struct variable "handles". When I want to know how i structured the variable I have to run my programm and…

rolf
- 41
- 1
2
votes
2 answers
When to use Dispose or when to use Using
I recently came across a situation where the Dispose method had to be hard-coded in a C# program. Otherwise the file used in an email will be "forever" locked and not even Process Manager was able to tell me who/what locked it. I had to use Unlocker…

Fandango68
- 4,461
- 4
- 39
- 74
2
votes
1 answer
Remove layout handle from xml
I have a layout defined in some xml file found in a community module. Somehow I want to add a condition (ifconfig) by which the content of the block to be rendered or completely remove that handle and create one by myself so that I can have access…

adela
- 143
- 8
2
votes
0 answers
Plot to highlight selected data
I'd like to create something similar to this. The differences are: my table only has one column, which is the variable I changed to get my data. I have the table set up and working, and most of what I have works, but I only seem to be able to…

Laurengineer
- 737
- 1
- 9
- 26
2
votes
2 answers
Can't access handles from a function
I'm trying to create a GUI using GUIDE, which reads a string through serial communication. After that it cuts out the needed numbers and puts it on the screen. I have created this function, which is executed every time when there is a line of data…

bdvd
- 117
- 1
- 1
- 11
2
votes
2 answers
get all handles of a window
Im looking for a way to get all handles in a specified window,
of every button and everything.
I tried with EnumDesktopWindows but it doesnt enum every handle, only the window handles.

alexx
- 21
- 1
2
votes
2 answers
OutOfMemoryException on a particular machine when running tests
We have a test of NUnit tests that are suffering OutOfMemoryExceptions on a particular machine.
After investigation it seems that it is not a memory issue, but a Handle issue (we are allocating too many Bitmap objects and not releasing them).
The…

lysergic-acid
- 19,570
- 21
- 109
- 218
2
votes
3 answers
get selection handles programmatically in android
In my app I have EditText element but I use it like TextView (it is not editable).
I want to select all text in this field by click on some button.
I do it with the next code
Selection.setSelection((Spannable) et.getText(),0,…

lubart
- 1,746
- 3
- 27
- 35
2
votes
1 answer
Correct use of SafeHandles in this P/Invoke use case
Working in C# with a native Dll, that uses opaque handles and internal reference counting, I have the following P/Invoke signatures (all decorated with DllImport attribute)
[DllImport("somedll.dll"]
public extern IntPtr getHandleOfA(IntPtr…

Tom Davies
- 2,386
- 3
- 27
- 44
2
votes
2 answers
Alternative to "set value" in a function/script that calls itself
I have a script that calls itself over when the condition of the if-statement is false. The maximum number of iterations as defined by the user can be up to 20 times.
The problem is that there is a variable(s) that changes inside the algorithm…

Ali NasserEddine
- 313
- 2
- 6
2
votes
2 answers
Connecting two handles in Matlab
I would like to connect my two axes.handles so that when the mouse button is clicked on one, the other one would also do what the first one do. I have an external function that executes out what I want to do when the mouse is clicked. I just need to…

user1953847
- 43
- 7
2
votes
2 answers
Matlab - Edit text
What I am trying to do is that when I put into "Edit text" (called: funkcia_edit) some function it will draw me graf to that function. Here is picture what I am trying to do, as you can see I have declared variables X and Y where Y is standing for…

Mario LIPCIK
- 457
- 2
- 9
- 24