[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

Re: ListIconGadget was working fine now is blank/empty

Post by Randy Walker »

RASHAD wrote: Sat Jul 20, 2024 10:44 pm Hi Randy
Good to see you and netmaestro are still kicking around on Purebasic.
You've both been a great help to me. Thanks!!
- - - - - - - - - - - - - - - -
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 »

Randy Walker wrote: Sun Jul 21, 2024 6:55 am
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.
.l/.i is not a matter of PureBasic version, it's a problem of programming style. .i has been the choice of pointers since there were 64 bit versions. I don't think it's good to stay with an older version just because it's comfortable.
BarryG wrote: Sun Jul 21, 2024 3:33 am
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
I know it's a real problem...for the ones who used the pointers wrong since there were 64 bit versions introduced.
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
Fred
Administrator
Administrator
Posts: 18153
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Re: ListIconGadget was working fine now is blank/empty

Post by Fred »

PB 6.1x just highlight a real programming error which should be corrected and not ignored. The fact it worked before doesn't mean it was right.
DarkDragon
Addict
Addict
Posts: 2344
Joined: Mon Jun 02, 2003 9:16 am
Location: Germany
Contact:

Re: ListIconGadget was working fine now is blank/empty

Post by DarkDragon »

Let's just remove the long data type for a year or so and give it back afterwards. 🙄

Using long for addresses in 64 bit processes was wrong beforehand, just luckily didn't lead to an error due to memory positioning.

If you copy codes from 200X it is up to you to check how hardware and software evolved since then. Also if you switch the compiler from 32bit to 64bit. If you used the codes from back then it could potentially be that the developers only had 32bit computers.
bye,
Daniel
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: Sun Jul 21, 2024 11:02 am I don't think it's good to stay with an older version just because it's comfortable.
Appears unlike yourself, I am not a Neophiliac. I don't need it just because it's new. I need it because it's tried and true. BTW -- My best machine is still a Windows 7 :lol:
- - - - - - - - - - - - - - - -
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 »

Randy Walker wrote: Sun Jul 21, 2024 8:25 pm
jacdelad wrote: Sun Jul 21, 2024 11:02 am I don't think it's good to stay with an older version just because it's comfortable.
Appears unlike yourself, I am not a Neophiliac. I don't need it just because it's new. I need it because it's tried and true. BTW -- My best machine is still a Windows 7 :lol:
PB 6.11 contains a ton of bugfixes which also affect 5.40.
Windows 7 doesn't get updates for ages now. Good luck securing it...
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 »

mk-soft wrote: Sat Jul 20, 2024 11:11 am 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.
I did NOT suggest or in any way imply it was the fault of anything Purebasic, per se. But I was only seeing this behavior in my main PB project, and after scouring the web I could find no clue as to what had happened or how to fix it, so I came here thinking/hoping maybe one of the PB enthusiasts might have run across a similar problem and worked out a solution they might share. Whatever the case, Thank you all for reading my OP.
- - - - - - - - - - - - - - - -
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 »

DarkDragon wrote: Sun Jul 21, 2024 7:35 pmLet's just remove the long data type for a year or so and give it back afterwards.
Nope, some structures still require an actual long and not integer type.
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 »

@BarryG
Absolutely you are right
It is Not a GAG
Nope, some structures still require an actual long and not integer type.
Egypt my love
DarkDragon
Addict
Addict
Posts: 2344
Joined: Mon Jun 02, 2003 9:16 am
Location: Germany
Contact:

Re: ListIconGadget was working fine now is blank/empty

Post by DarkDragon »

RASHAD wrote: Mon Jul 22, 2024 5:46 am @BarryG
Absolutely you are right
It is Not a GAG
Nope, some structures still require an actual long and not integer type.
It's not a gag but it's sarcasm.
bye,
Daniel
AZJIO
Addict
Addict
Posts: 2141
Joined: Sun May 14, 2017 1:48 am

Re: ListIconGadget was working fine now is blank/empty

Post by AZJIO »

Do a search for ".l" in your code, what's the problem?
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 »

For example
https://learn.microsoft.com/en-us/windo ... gdi-bitmap
This is MS and it is the same using PB Structure viewer
Now the PB Pro said it is a gag or sarcasm
2000 posts and more and nothing but Bla Bla
Egypt my love
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 »

AZJIO wrote: Mon Jul 22, 2024 6:31 amDo a search for ".l" in your code, what's the problem?
See my post a little bit up. You can't just remove all ".l" to make everything work. I once thought that way, until I was corrected.
DarkDragon
Addict
Addict
Posts: 2344
Joined: Mon Jun 02, 2003 9:16 am
Location: Germany
Contact:

Re: ListIconGadget was working fine now is blank/empty

Post by DarkDragon »

BarryG wrote: Mon Jul 22, 2024 6:47 am
AZJIO wrote: Mon Jul 22, 2024 6:31 amDo a search for ".l" in your code, what's the problem?
See my post a little bit up. You can't just remove all ".l" to make everything work. I once thought that way, until I was corrected.
Yeah you actually have to understand your own code. Or you could do unit testing. Wasn't there some PureUnit or so somewhen?
bye,
Daniel
AZJIO
Addict
Addict
Posts: 2141
Joined: Sun May 14, 2017 1:48 am

Re: ListIconGadget was working fine now is blank/empty

Post by AZJIO »

BarryG wrote: Mon Jul 22, 2024 6:47 am
AZJIO wrote: Mon Jul 22, 2024 6:31 amDo a search for ".l" in your code, what's the problem?
See my post a little bit up. You can't just remove all ".l" to make everything work. I once thought that way, until I was corrected.
I didn’t say that it needs to be removed or replaced. I said we need to find it and make a decision to fix it or leave it. I don't think you have a thousand variables. Notepad++ and AkelPad have functionality for displaying strings with found occurrences. You have received a list and click on a line to go to it and make edits.
After half an hour you get a working code
screenshot in AkelPad
screenshot in Notepad++
screenshot in FindAllReferences
Post Reply