ProGUI - CreateToolBarEx fails in PB 6.10

Windows specific forum
wombats
Enthusiast
Enthusiast
Posts: 716
Joined: Thu Dec 29, 2011 5:03 pm

ProGUI - CreateToolBarEx fails in PB 6.10

Post by wombats »

Obviously I can’t share any of the ProGUI source here, but since PB 6.10, its MenuEx and ToolbarEx don’t work anymore. CreateToolBar is used in CreateToolbarEx and fails for some reason. Does anyone have any suggestions? I have emailed Chris, but I thought I’d ask here as well.
metalos
User
User
Posts: 29
Joined: Thu Apr 19, 2012 8:32 am

Re: ProGUI - CreateToolBarEx fails in PB 6.10

Post by metalos »

Hi wombats, you managed to find a solution to the problem. For me, the ToolBarEx works well but it's the MenuEx that crashes with invalid memory access.
wombats
Enthusiast
Enthusiast
Posts: 716
Joined: Thu Dec 29, 2011 5:03 pm

Re: ProGUI - CreateToolBarEx fails in PB 6.10

Post by wombats »

I wasn't able to find a solution, so I'm still using PB 6.04 on Windows. I think it might be to do with the use of .l in ProGUI, but when I try changing them, it crashes in other places.
Zach
Addict
Addict
Posts: 1675
Joined: Sun Dec 12, 2010 12:36 am
Location: Somewhere in the midwest
Contact:

Re: ProGUI - CreateToolBarEx fails in PB 6.10

Post by Zach »

Have you tried emailing or messaging Chris for support? He's usually pretty responsive

support@progui.co.uk

https://www.purebasic.fr/english/member ... ile&u=1976
wombats
Enthusiast
Enthusiast
Posts: 716
Joined: Thu Dec 29, 2011 5:03 pm

Re: ProGUI - CreateToolBarEx fails in PB 6.10

Post by wombats »

Zach wrote: Sun May 19, 2024 11:19 pm Have you tried emailing or messaging Chris for support? He's usually pretty responsive

support@progui.co.uk

https://www.purebasic.fr/english/member ... ile&u=1976
I have. I suspect he's just too busy with v3. Hopefully that offers what v1 has as I don't need anything extra in ProGUI, necessarily, but I do want to use the latest PB version.
metalos
User
User
Posts: 29
Joined: Thu Apr 19, 2012 8:32 am

Re: ProGUI - CreateToolBarEx fails in PB 6.10

Post by metalos »

I contacted Chris but he is quite busy on version 3 of ProGui. So has anyone managed to find a solution? All my program is based on ProGui 1.41 and I really need to use PB 6.10.
wombats
Enthusiast
Enthusiast
Posts: 716
Joined: Thu Dec 29, 2011 5:03 pm

Re: ProGUI - CreateToolBarEx fails in PB 6.10

Post by wombats »

I can get it to not crash my program by changing the type of "id" in CreateToolbarEx to an integer instead of a long, but then the toolbar isn't created at all. I am wondering if it's to do with the use of longs throughout ProGUI that doesn't work well in PureBasic 6.10 and above. I don't think I can figure it out entirely.
BarryG
Addict
Addict
Posts: 4127
Joined: Thu Apr 18, 2019 8:17 am

Re: ProGUI - CreateToolBarEx fails in PB 6.10

Post by BarryG »

metalos wrote: Tue May 28, 2024 4:01 pmI contacted Chris but he is quite busy on version 3 of ProGui.
Is that what he said? :shock: You paid for ProGUI, right?
wombats
Enthusiast
Enthusiast
Posts: 716
Joined: Thu Dec 29, 2011 5:03 pm

Re: ProGUI - CreateToolBarEx fails in PB 6.10

Post by wombats »

wombats wrote: Fri Jun 21, 2024 5:49 am I can get it to not crash my program by changing the type of "id" in CreateToolbarEx to an integer instead of a long, but then the toolbar isn't created at all. I am wondering if it's to do with the use of longs throughout ProGUI that doesn't work well in PureBasic 6.10 and above. I don't think I can figure it out entirely.
Update...I changed pretty much every ID I found in ProGUI.pb to an integer instead of a long and now the ToolbarEx and MenuEx are created, but I'm still getting crashes.
PrincieD
Addict
Addict
Posts: 858
Joined: Wed Aug 10, 2005 2:08 pm
Location: Yorkshire, England
Contact:

Re: ProGUI - CreateToolBarEx fails in PB 6.10

Post by PrincieD »

Hi guys, I'm currently working on a fix for this - please bare with me!

Chris.
ProGUI - Professional Graphical User Interface Library - http://www.progui.co.uk
PrincieD
Addict
Addict
Posts: 858
Joined: Wed Aug 10, 2005 2:08 pm
Location: Yorkshire, England
Contact:

Re: ProGUI - CreateToolBarEx fails in PB 6.10

Post by PrincieD »

Fixed! :)

https://www.progui.co.uk/downloads/ProGUI.zip

https://www.progui.co.uk/downloads/ProGUI_Examples.zip

If you have a Gold or Platinum licence and haven't received an email from me please private message me.

Cheers!

Chris.
ProGUI - Professional Graphical User Interface Library - http://www.progui.co.uk
Post Reply