Click here to Skip to main content
15,915,857 members
Home / Discussions / C#
   

C#

 
AnswerRe: is it such a thing LinkedLists in C# ? Pin
Kevin McFarlane15-Oct-08 3:46
Kevin McFarlane15-Oct-08 3:46 
AnswerRe: is it such a thing LinkedLists in C# ? Pin
Giorgi Dalakishvili15-Oct-08 3:46
mentorGiorgi Dalakishvili15-Oct-08 3:46 
GeneralRe: is it such a thing LinkedLists in C# ? Pin
nesfrank15-Oct-08 6:29
nesfrank15-Oct-08 6:29 
GeneralRe: is it such a thing LinkedLists in C# ? Pin
Giorgi Dalakishvili15-Oct-08 6:40
mentorGiorgi Dalakishvili15-Oct-08 6:40 
GeneralRe: is it such a thing LinkedLists in C# ? Pin
nesfrank15-Oct-08 7:51
nesfrank15-Oct-08 7:51 
GeneralRe: is it such a thing LinkedLists in C# ? Pin
Dan Neely15-Oct-08 7:09
Dan Neely15-Oct-08 7:09 
GeneralRe: is it such a thing LinkedLists in C# ? Pin
nesfrank15-Oct-08 7:50
nesfrank15-Oct-08 7:50 
QuestionProblems of losing handle to stdcall-api from C#-DLL Pin
J. Holzer15-Oct-08 3:29
J. Holzer15-Oct-08 3:29 
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
QuestionEnable/disable buttons in Toolbar Pin
kanchoette15-Oct-08 3:24
kanchoette15-Oct-08 3:24 
AnswerRe: Enable/disable buttons in Toolbar Pin
Giorgi Dalakishvili15-Oct-08 3:29
mentorGiorgi Dalakishvili15-Oct-08 3:29 
QuestionThreads and Form Controls Pin
Programm3r15-Oct-08 2:41
Programm3r15-Oct-08 2:41 
AnswerRe: Threads and Form Controls Pin
Giorgi Dalakishvili15-Oct-08 2:49
mentorGiorgi Dalakishvili15-Oct-08 2:49 
GeneralRe: Threads and Form Controls Pin
Programm3r15-Oct-08 2:58
Programm3r15-Oct-08 2:58 
GeneralRe: Threads and Form Controls Pin
Giorgi Dalakishvili15-Oct-08 3:01
mentorGiorgi Dalakishvili15-Oct-08 3:01 
QuestionPlease Help me!!! Pin
JeremH15-Oct-08 1:59
JeremH15-Oct-08 1:59 
AnswerRe: Please Help me!!! Pin
Pete O'Hanlon15-Oct-08 2:04
mvePete O'Hanlon15-Oct-08 2:04 
GeneralRe: Please Help me!!! Pin
JeremH15-Oct-08 2:09
JeremH15-Oct-08 2:09 
GeneralRe: Please Help me!!! Pin
Pete O'Hanlon15-Oct-08 2:27
mvePete O'Hanlon15-Oct-08 2:27 
GeneralRe: Please Help me!!! Pin
JeremH15-Oct-08 2:34
JeremH15-Oct-08 2:34 
GeneralRe: Please Help me!!! Pin
Pete O'Hanlon15-Oct-08 3:34
mvePete O'Hanlon15-Oct-08 3:34 
GeneralRe: Please Help me!!! Pin
Pedram Behroozi15-Oct-08 3:42
Pedram Behroozi15-Oct-08 3:42 
GeneralRe: Please Help me!!! Pin
JeremH15-Oct-08 4:18
JeremH15-Oct-08 4:18 
GeneralRe: Please Help me!!! Pin
Pete O'Hanlon15-Oct-08 5:20
mvePete O'Hanlon15-Oct-08 5:20 
AnswerRe: Please Help me!!! Pin
Pedram Behroozi15-Oct-08 2:23
Pedram Behroozi15-Oct-08 2:23 
GeneralRe: Please Help me!!! Pin
JeremH15-Oct-08 2:37
JeremH15-Oct-08 2:37 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.