Page 1 of 1

[Solved] App taskbar button icon is wrong

Posted: Sat Jan 28, 2023 1:34 pm
by BarryG
When I start a new app, even something simple like below, the window's icon in the taskbar button is often from another of my apps, even though that icon is not used or referenced in the new app anywhere. This has happened for many years now, but I've been too lazy to mention it.

Code: Select all

OpenWindow(0,400,200,640,240,"test",#PB_Window_SystemMenu)
Repeat
  ev=WaitWindowEvent()
Until ev=#PB_Event_CloseWindow
Window icon when new app is running:

Image

And how it appears in the taskbar:

Image

And also, when I right-click the taskbar button, the name of one of my other non-running apps shows up (instead of the window title "test" per above), even though the new app hasn't been saved or had any properties entered for it in the Compiler Options.

// Moved from "Bugs - Windows" to "Coding Questions" (Kiffi)

Re: App taskbar button icon is wrong

Posted: Sat Jan 28, 2023 2:17 pm
by mk-soft
I think you have changed something in one of the Windows settings or entered a reference (Open with).

Definitely no problem with Purebasic

Re: App taskbar button icon is wrong

Posted: Sun Jan 29, 2023 12:29 am
by BarryG
I did a fresh install of PureBasic (and deleted its %APPDATA% folder) to double-check, and the problem was still there.

However, once I deleted the thumbnail cache folder of Windows (the OS) and killed explorer.exe, the problem went away.

So you're right: not a PureBasic bug. Just damn Microsoft again. Grrr.