[SOLVED] ListIconGadget was working fine now is blank/empty

Just starting out? Need help? Post your questions and find answers here.
Randy Walker
Addict
Addict
Posts: 989
Joined: Sun Jul 25, 2004 4:21 pm
Location: USoA

[SOLVED] ListIconGadget was working fine now is blank/empty

Post by Randy Walker »

You can jump to the final solution here:
https://www.purebasic.fr/english/viewto ... 13#p637613

Please jump down to my last post: https://www.purebasic.fr/english/viewto ... 44#p637544

Sorry I cannot post my proprietary code here and do not believe it would help anyway. Here on my Asus Zenbook Win 11 Pro laptop I have a problem in my major project in the main ListIconGadget where it keeps coming up blank. I run the same program on 2 different Win 7 machines and the ListIconGadget is fully populated as it should be, so even if I were to share my code here, I expect you would also have no issues.

I expect what has happened is the ListIconGadget wrapper for the Windows Image Icon control API or more likely the API itself got broken. Does not matter if I try running any previous version of my main project, even years old -- they all come up blank in the ListIconGadget.

Anyone ever have a problem like this??? And figure it out??
THANKS for any help and thanks for reading.

[EDIT] Not the best solution. Read on if you like but the final solution was to revert to a Disk Image Restore.
Last edited by Randy Walker on Sat Mar 15, 2025 11:37 pm, edited 5 times in total.
- - - - - - - - - - - - - - - -
Randy
I *never* claimed to be a programmer.
User avatar
jacdelad
Addict
Addict
Posts: 1991
Joined: Wed Feb 03, 2021 12:46 pm
Location: Riesa

Re: ListIconGadget was working fine now is blank/empty

Post by jacdelad »

Ah, come on. Without a minimum code we can't even remotely help you...
Good morning, that's a nice tnetennba!

PureBasic 6.21/Windows 11 x64/Ryzen 7900X/32GB RAM/3TB SSD
Synology DS1821+/DX517, 130.9TB+50.8TB+2TB SSD
Randy Walker
Addict
Addict
Posts: 989
Joined: Sun Jul 25, 2004 4:21 pm
Location: USoA

Re: ListIconGadget was working fine now is blank/empty

Post by Randy Walker »

jacdelad wrote: Sat Jul 20, 2024 12:10 am Ah, come on. Without a minimum code we can't even remotely help you...
@jacdelad
Thanks for reading. If you can't relate without code, you're not going to be able to relate. Pretty sure my windows API stuff is broken, but have no clue how to fix without doing the Windows 11 Reset, which I really do not want to do. Kinda like pulling out fingernails, you know?
- - - - - - - - - - - - - - - -
Randy
I *never* claimed to be a programmer.
Randy Walker
Addict
Addict
Posts: 989
Joined: Sun Jul 25, 2004 4:21 pm
Location: USoA

Re: ListIconGadget was working fine now is blank/empty

Post by Randy Walker »

I think (hope) I found my solution. Restore an Aomei disk image backup I created back in May of this year. Pretty sure (hopefully) the blank ListIconGadget issue occurred after that. Better than doing the dreaded Windows "Reset this PC" option that would be my last resort if image restore fails me.
BTW -- I've used the Aomei Backupper (standard) to migrate my 10" Asus from HDD to SDD and it turned out perfect so I am rather confident about doing an image restore here on my high price Asus Zenbook Duo Pro 15". Well worth the investment. :) Aomei that is. Not so sure about the pricey Zenbook.
- - - - - - - - - - - - - - - -
Randy
I *never* claimed to be a programmer.
User avatar
mk-soft
Always Here
Always Here
Posts: 6201
Joined: Fri May 12, 2006 6:51 pm
Location: Germany

Re: ListIconGadget was working fine now is blank/empty

Post by mk-soft »

I think it's more likely that it's the Windows API you're using that works differently under Win 11.
Which API did you use? It will not be due to the PureBasic functions.
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
User avatar
jacdelad
Addict
Addict
Posts: 1991
Joined: Wed Feb 03, 2021 12:46 pm
Location: Riesa

Re: ListIconGadget was working fine now is blank/empty

Post by jacdelad »

In theory the Windows APIs shouldn't work differently with Windows 11. I use a lot Windows APIs for LostIconGadgets and have no problems so far.

However, if you were able to restore a working backup, then you can maybe develop your code again until it doesn't work anymore. And circle the culprit.
Good morning, that's a nice tnetennba!

PureBasic 6.21/Windows 11 x64/Ryzen 7900X/32GB RAM/3TB SSD
Synology DS1821+/DX517, 130.9TB+50.8TB+2TB SSD
Randy Walker
Addict
Addict
Posts: 989
Joined: Sun Jul 25, 2004 4:21 pm
Location: USoA

Re: ListIconGadget was working fine now is blank/empty

Post by Randy Walker »

jacdelad wrote: Sat Jul 20, 2024 11:36 am However, if you were able to restore a working backup, then you can maybe develop your code again until it doesn't work anymore. And circle the culprit.
Well, problem with that theory is I didn't do any code modifications since my last disk image backup, And every archived copy of my compiled project also had the same empty ListIconGadget, so it's nothing I did in Purebasic to cause the issue. The problem was in the Windows OS, proven by the fact that the disk image restore fixed the whole problem. Case closed (more or less, still don't know what actually caused the problem or how to fix this problem in the broken OS).
- - - - - - - - - - - - - - - -
Randy
I *never* claimed to be a programmer.
RASHAD
PureBasic Expert
PureBasic Expert
Posts: 4945
Joined: Sun Apr 12, 2009 6:27 am

Re: ListIconGadget was working fine now is blank/empty

Post by RASHAD »

Are you using Normal ListIcon or Virtual ListIcon ?
Just guessing :
It may be a Global var issue
Egypt my love
Randy Walker
Addict
Addict
Posts: 989
Joined: Sun Jul 25, 2004 4:21 pm
Location: USoA

Re: ListIconGadget was working fine now is blank/empty

Post by Randy Walker »

Oh!! hello Rashad :)
Good to see you again!
Thanks for reading. I used the Purebasic keyword as follows:

Code: Select all

      CustList0.l = ListIconGadget(#CustList_0, 5, 33, lastLook_wW.l - 7 - SM_CXtotal, lastLook_wH.l - 344 - SM_CYtotal, " Parent Co.", Col0_0, #PB_ListIcon_FullRowSelect | #PB_ListIcon_AlwaysShowSelection | #PB_ListIcon_GridLines | #PB_ListIcon_MultiSelect)
Scroll right---> It's a long line.
- - - - - - - - - - - - - - - -
Randy
I *never* claimed to be a programmer.
RASHAD
PureBasic Expert
PureBasic Expert
Posts: 4945
Joined: Sun Apr 12, 2009 6:27 am

Re: ListIconGadget was working fine now is blank/empty

Post by RASHAD »

Hi Randy
If you are using now PB v6.xx it maybe the problem of using long while you should use integer
Check
Egypt my love
User avatar
jacdelad
Addict
Addict
Posts: 1991
Joined: Wed Feb 03, 2021 12:46 pm
Location: Riesa

Re: ListIconGadget was working fine now is blank/empty

Post by jacdelad »

RASHAD wrote: Sat Jul 20, 2024 10:44 pm Hi Randy
If you are using now PB v6.xx it maybe the problem of using long while you should use integer
Check
This seems to become some kind of running gag...
Good morning, that's a nice tnetennba!

PureBasic 6.21/Windows 11 x64/Ryzen 7900X/32GB RAM/3TB SSD
Synology DS1821+/DX517, 130.9TB+50.8TB+2TB SSD
Randy Walker
Addict
Addict
Posts: 989
Joined: Sun Jul 25, 2004 4:21 pm
Location: USoA

Re: ListIconGadget was working fine now is blank/empty

Post by Randy Walker »

PB v6.xxx was over my head so I am still using v5.40 LTS
- - - - - - - - - - - - - - - -
Randy
I *never* claimed to be a programmer.
Randy Walker
Addict
Addict
Posts: 989
Joined: Sun Jul 25, 2004 4:21 pm
Location: USoA

Re: ListIconGadget was working fine now is blank/empty

Post by Randy Walker »

jacdelad wrote: Sat Jul 20, 2024 10:47 pm
This seems to become some kind of running gag...
Gag???!! No gag about it. We play for real. :oops:
- - - - - - - - - - - - - - - -
Randy
I *never* claimed to be a programmer.
BarryG
Addict
Addict
Posts: 4121
Joined: Thu Apr 18, 2019 8:17 am

Re: ListIconGadget was working fine now is blank/empty

Post by BarryG »

jacdelad wrote: Sat Jul 20, 2024 10:47 pmThis seems to become some kind of running gag
No, it's a real issue. Lots of items from pre-6.10 need updating from ".l" to ".i" type.

Here's my example from today -> https://www.purebasic.fr/english/viewto ... 96#p624596
Randy Walker
Addict
Addict
Posts: 989
Joined: Sun Jul 25, 2004 4:21 pm
Location: USoA

Re: ListIconGadget was working fine now is blank/empty

Post by Randy Walker »

BarryG wrote: Sun Jul 21, 2024 3:33 am No, it's a real issue. Lots of items from pre-6.10 need updating from ".l" to ".i" type.

Here's my example from today -> https://www.purebasic.fr/english/viewto ... 96#p624596
Maybe that's why I gave up trying to use 6.xx
27000+ lines in my main program alone, was just way too much to troubleshoot.
- - - - - - - - - - - - - - - -
Randy
I *never* claimed to be a programmer.
Post Reply