Thread Error: Invalid handle (6) / Bug Reports / NetSetMan Support

NetSetMan Support

Search for already answered questions about NetSetMan (Pro) or ask new ones

You are not logged in.

#1 2021-01-08 19:05

pkandera
Member
Registered: 2021-01-07
Posts: 7

Thread Error: Invalid handle (6)

Every time after waking up from sleep/hibernate when the place (network) is changed I get this error. Sometimes it is necessary press OK more times sometimes only once.

Windows 10 Pro 20H2 64bit, build 19042.685
NetSetMan Pro 5.0.2
NetSetMan Service is activated

Thanks.
BR
Petr

Offline

#2 2021-01-15 18:45

pkandera
Member
Registered: 2021-01-07
Posts: 7

Re: Thread Error: Invalid handle (6)

Version 5.0.3 - error still persists... Today about 20 times.
Help please.
BR
Petr

Offline

#3 2021-01-15 22:14

NetSetMan Support
Administrator
Registered: 2005-08-06
Posts: 1,878

Re: Thread Error: Invalid handle (6)

We haven't been able to reproduce it so far. It is still on our agenda, but we are currently focussing on fixing bugs that we can reproduce, then this bug will follow. Sorry, that we didn't reply sooner.

Based on your previous posts, you have recently started using the Ping condition in AutoSwitch. Maybe this problem is connected to this. Please disable AutoSwitch completely and keep an eye on this for the next few days. If the problem does not occur anymore, enable AutoSwitch again, and remove one type of condition completely (for example Ping from all profiles), then see if the problem comes back or not. If it does, disable another type of condition as well. Continue, until you found the reason, and describe in detail exactly what you have configured and how to reproduce this. Your initial post is already a good start, but we need more details (e.g. what exactly do you mean by "place (network) is changed"?).

Offline

#4 2021-01-21 13:15

pkandera
Member
Registered: 2021-01-07
Posts: 7

Re: Thread Error: Invalid handle (6)

I found there is no problem without Autoswitch. I found that the problem occurs when I change location from office network (cable LAN) to home network (Wi-Fi). And sometimes on home Wi-Fi after laptop waking up. I usually used ping as one rule in Autoswitch. Now I changed the all ping rules to NLM test and it looks better.

But Autoswitch (rules analyzing) works very slow in this version. On 4.x version it took 5-10 seconds, on 5.03 version it takes couple of minute. In Autoswitch window I see all rules on left side as ok but not on right side.

Offline

#5 2021-01-21 13:47

NetSetMan Support
Administrator
Registered: 2005-08-06
Posts: 1,878

Re: Thread Error: Invalid handle (6)

If the problem went away changing all Ping conditions to NLM then there might be a problem with the Ping threads. We will analyse that.

We didn't change anything relevant in the actual AutoSwitch process that could lead to longer delays than in the previous 4.x version. Your observation is probably just a coincidence.
Ping requests aren't constantly done, but only every minute or so, which might explain your delays as you haven't used Ping before. NLM information is used as soon as it is provided by Windows. Changing to a different network might require Windows 1-2 minutes to realize that. Only then NetSetMan receives a notification and can check AutoSwitch conditions and react accordingly.

If you are saying that the left side of the AutoSwitch overview shows all values up to date, but the right side doesn't reflect that, then please create screenshots to document that. If you don't want to post them publicly, you can just upload them without including them in your message. Explain the circumstances for each screenshot situation, then we can analyse it.

Offline

#6 2021-01-22 23:57

pkandera
Member
Registered: 2021-01-07
Posts: 7

Re: Thread Error: Invalid handle (6)

I don't know what happened but now it works as I assume. I didn't change settings. So it looks as a problem with ping. With NLM it is OK. Thank you for your support.
BR
Petr

Offline

#7 2021-01-26 18:59

pkandera
Member
Registered: 2021-01-07
Posts: 7

Re: Thread Error: Invalid handle (6)

Version 5.04 - two subsequent days problem with autoswitch. Delay 4-5 minutes. See uploaded picture - autoswicth should switch to Home Wifi.

Offline

#8 2021-02-20 12:05

NetSetMan Support
Administrator
Registered: 2005-08-06
Posts: 1,878

Re: Thread Error: Invalid handle (6)

We have implemented a couple of improvements regarding AutoSwitch for the next version so recognizing network changes should now be quicker and more reliable. We have also found what could potentially cause the error message you initially descibed and are now catching it internally without displaying it.
After the next release, please let us know if your problems are now solved.

Offline