-
-
Notifications
You must be signed in to change notification settings - Fork 482
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Crash when restart TaskbarX #239
Comments
@deluxghost I read your issue. Trying to understand why and where it happens. |
Could you implement any log feature so I can collect and provide more info? I guess it might be a very rare case. |
@deluxghost Sorry for the late response Currently there's nothing to log TaskbarX. Does it still happen with 1.5.5.0 |
Well, since I am the only one who has this environment to replicate this bug, I decided to debug myself. I don't know VB.NET, but I found a crash case anyway, here it is. TaskbarX/TaskbarX/TaskbarX/Main.vb Lines 225 to 234 in 1da3dd8
The problem is, not all objects have the TaskbarX/TaskbarX/TaskbarX/Main.vb Line 229 in 1da3dd8
My fix: Do While (i < CType(count, Integer))
Dim item As Object = windowsType.InvokeMember("Item", BindingFlags.InvokeMethod, Nothing, windows, New Object() {i})
Dim itemType As Type = item.GetType
Dim itemNameInfo As PropertyInfo = itemType.GetProperty("Name")
If (itemNameInfo <> Nothing) Then
Dim itemName As String = CType(itemType.InvokeMember("Name", BindingFlags.GetProperty, Nothing, item, Nothing), String)
If (itemName = "Shell_TrayWnd") Then
itemType.InvokeMember("Refresh", BindingFlags.InvokeMethod, Nothing, item, Nothing)
End If
End If
i = (i + 1)
Loop
|
Ohh well, Very nice you started debugging it yourself! The modification still works fine on my end so i will implement it for the next update ;) |
I have this issue even before its name was changed to TaskbarX. The startup task works, but if (for some reason) TaskbarX exits, I can't launch it anymore before rebooting OS, the process just disappears simply after launching.
I can open the configurator, but if I click stop or apply button, the configurator also crashes, and if TaskbarX is still alive, it will crashes/disappears too.
BTW, my Windows version is 1909.
Since I have this issue on old releases too, so I installed 1.5.2.0, and got this crash info when clicking stop button in the configurator:
I'm not sure if it's related since there are no logs in the newest version.
The text was updated successfully, but these errors were encountered: