[Solved] App taskbar button icon is wrong

Just starting out? Need help? Post your questions and find answers here.
BarryG
Addict
Addict
Posts: 3292
Joined: Thu Apr 18, 2019 8:17 am

[Solved] App taskbar button icon is wrong

Post 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)
Last edited by BarryG on Sun Jan 29, 2023 12:29 am, edited 1 time in total.
User avatar
mk-soft
Always Here
Always Here
Posts: 5335
Joined: Fri May 12, 2006 6:51 pm
Location: Germany

Re: App taskbar button icon is wrong

Post 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
My Projects ThreadToGUI / OOP-BaseClass / EventDesigner V3
PB v3.30 / v5.75 - OS Mac Mini OSX 10.xx - VM Window Pro / Linux Ubuntu
Downloads on my Webspace / OneDrive
BarryG
Addict
Addict
Posts: 3292
Joined: Thu Apr 18, 2019 8:17 am

Re: App taskbar button icon is wrong

Post 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.
Post Reply