I am developing an application where I get information about the user from Active Directory. I go through every user and find information about it. I have many users in AD and when I run the application for the first time, it works fine, but when the user stops the application 2 and gives me an error: The handle is invalid. (Exception from HRESULT: 0x80070006 (E_HANDLE)) I really do not know what it means because precise similar application works perfectly on another computer and It goes through every user in AD and their information is taken. What can I do? EDIT: I use BackgroundWorker to get information about users from advertising. Use your statement to review your code or dissection () or close () explicitly when a class usage implements it < / P>
Private Zero BGWorker_DoWork (Object Sender, DoWorkEventArgs e) {try here // Here I call the method to get user information from AD. GetUserFromADMethod ("server", "AD"); } Finally {// calling dispose () here the dose does not work. BGWorker.Dispose (); It is a low-level Windows error, ERROR_INVALID_HANDLE, error 6. Invalid handle value when you calculate large amounts of data, it shows that your app is not calling the dispute () when it is a possible diagnostic TaskMgr.exe, the Process tab. Select View + column and tick on "Handles" View the value shown for your program when it runs. On reaching 10,000 machines on big machines, there is big kebab.
Comments
Post a Comment