|
But when the 4th hit for "C# linked list" is an article that shows why the generic linked list (at the end of the article) is better than a DIY list, and the 2nd hit for "C# linkedlist" is a howto on the ArrayList<> generic, posting a question like this shows you haven't put any effort into it.
Today's lesson is brought to you by the word "niggardly". Remember kids, don't attribute to racism what can be explained by Scandinavian language roots.
-- Robert Royall
|
|
|
|
|
I do put efforts but I have limited english. all are different. I appreaciate any response but I don't appreciate offense
|
|
|
|
|
Hi!
I have a stdcall-DLL, that works as an API and offers me connection to a hardware-device using "open"/"close"-methodes, as well a "read"/"write"-methodes for accessing the device. These API-calls are wrapped by a C#-DLL, that encapsules the calls an offers some methods i need to use in my application.
The API´s "open"-method delivers a handle, that is used with the other functions to access the device.
This handle is stored in a private class-member for further use with the read-methodes.
My application/wrapper-DLL opens the connection, then reads something from the device everytime an external signal arrives at my software. When starting my app everything works fine for some hours or days, until nothing can be read from the DLL and an error occurs ssaying "invalid handle".
When trying to re-connect the device (API-calls "close" and "connect") the API tells me that the connection is already open and i cannot connect to the device. After restarting my software everything works fine again.
Because of this behaviour i changed the operation of my software:
Now the device is re-connected everytime i finished a read-operation.
This is because i thought that maybe the API might have a problem with a long-term connection.
Unfortunately i get the same problem again: After some hours/days i get an "invalid handle" again.
As the application should run 24/7 i need a way to stabilize this connection to the device.
Does anyone have an idea, where my problem might be?
Thanx a lot
Greetings
JH
|
|
|
|
|
I'm using VS 2008. How can I enable/disable ToolBar buttons please?
|
|
|
|
|
|
Hi all,
If I try and set some of the properties of a textbox for example, within the thread I receive the following error: cross-thread operation not valid. I understand why this is happening so my question ...
I would like to know if there is another way of setting / getting form control properties within a thread instead of making use of the BeginInvoke() method.
I.e:
public delegate void InvokeDelegate();
private void Invoke_Click(object sender, EventArgs e)
{
myTextBox.BeginInvoke(new InvokeDelegate(InvokeMethod));
}
public void InvokeMethod()
{
myTextBox.Text = "Executed the given delegate";
}
Many thanks in advance
Kind regards,
The only programmers that are better those C# programmers are those who code in 1's and 0's |
Programm3r
My Blog: ^_^
|
|
|
|
|
|
|
Glad to help you
|
|
|
|
|
hi everybody,
i would like how do you get the node's position (treeview)
thanks
jere
|
|
|
|
|
What do you mean position? Do you mean where it is in the tree, or it's pixel position on the screen?
|
|
|
|
|
when you create treeview you are node and i need position of each node position (x and y)
jere
|
|
|
|
|
Nope still no clearer. X and Y normally refers to co-ordinates, and this would suggest screen co-ordinates, but this entirely depends on what nodes are opened or closed at the time.
|
|
|
|
|
yes it's true the nodes can close or open. you think it's better to get the screen co-ordinates. how do you get the screen co-ordinate of nodes
jere
|
|
|
|
|
Each node has a Bounds property, which is the bounding rectangle of the node.
|
|
|
|
|
Direct answer, Great!
While (true) { Human.isLearnable = true; }
|
|
|
|
|
|
No problem. Glad to help.
|
|
|
|
|
A TreeView has Root nodes and Child nodes.
When you say TreeView.Nodes[0]; it means the first Root node,
TreeView.Nodes[0].Nodes[0]; means the first Child node of the first Root node.
And so on...
While (true) { Human.isLearnable = true; }
|
|
|
|
|
Thanks you answer but i need the position of nodes.
jere
|
|
|
|
|
|
i saw you exemple but you get the treeview's position and not nodes.
thanks
jere
|
|
|
|
|
.
modified 6-Dec-16 7:34am.
|
|
|
|
|
Well whoop-de-freakin do. Somebody has found the smileys. Now did you want something or are you just an idiot with a mouse?
|
|
|
|
|
Oh great... Another retard...
"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001
|
|
|
|