It is currently Wed May 22, 2013 4:08 pm

All times are UTC + 1 hour




Post new topic Reply to topic  [ 9 posts ] 
Author Message
 Post subject: Problems with ProGUI userlib
PostPosted: Mon Oct 04, 2010 6:52 pm 
Offline
Enthusiast
Enthusiast
User avatar

Joined: Wed Aug 10, 2005 2:08 pm
Posts: 558
Location: Yorkshire, England
Hi ABBKlaus

I'm getting the following errors when trying to compile ProGUI examples with threadsafe/unicode enabled with the ProGUI multilib:

POLINK: error: Unresolved external symbol 'ProGUI_THREAD_a_UIWhidbeyColours'
POLINK: error: Unresolved external symbol 'ProGUI_THREAD_a_UIOffice2003Colours'
POLINK: error: Unresolved external symbol 'ProGUI_THREAD_a_brushHandle'

These global arrays of structures are declared in the ProGUI_Init proceduredll:

Code:
Global Dim UIWhidbeyColours.UIColours(#MaxUIComponents)
Global Dim UIOffice2003Colours.UIColours(#MaxUIComponents)
Global Dim brushHandle.brushHandles(#MaxUIComponents)


and the structures are:

Code:
Structure dynamicBlitEx ; used for storing list of different sized blitEx components
  hdc.i
  bitmap.i
  width.l
  height.l
EndStructure

Structure UIColours
  Blue.l
  Olive.l
  Silver.l
  Grey.l
  CustomBlue.l
  CustomOlive.l
  CustomSilver.l
  CustomGrey.l
 
  ; blitCache
  hdc.i
  bitmap.i
  width.l
  height.l
  List dBlitEx.dynamicBlitEx()
 
EndStructure

Structure brushHandles
  Handle.i
  colour.l
EndStructure


I'm really scratching my head over this as when threadsafe/unicode is not ticked in the compiler options the multilib works fine :?

Any help would be greatly appreciated! :)

Thanks!

Chris.

_________________
ProGUI - Professional Graphical User Interface Library - http://www.progui.co.uk


Top
 Profile  
 
 Post subject: Re: Problems with ProGUI userlib
PostPosted: Tue Oct 05, 2010 6:01 pm 
Offline
Addict
Addict

Joined: Sat Apr 10, 2004 1:20 pm
Posts: 1069
Location: Germany
i can´t reproduce the problem you are having here on my machine :o

would be good to have a snippet that reproduces your problem clearly :idea:

BR Klaus

Code:
#MaxUIComponents = 256

Structure dynamicBlitEx ; used for storing list of different sized blitEx components
  hdc.i
  bitmap.i
  width.l
  height.l
EndStructure

Structure UIColours
  Blue.l
  Olive.l
  Silver.l
  Grey.l
  CustomBlue.l
  CustomOlive.l
  CustomSilver.l
  CustomGrey.l
 
  ; blitCache
  hdc.i
  bitmap.i
  width.l
  height.l
  List dBlitEx.dynamicBlitEx()
 
EndStructure

Structure brushHandles
  Handle.i
  colour.l
EndStructure

ProcedureDLL ProGUI_Init()
  Global Dim UIWhidbeyColours.UIColours(#MaxUIComponents)
  Global Dim UIOffice2003Colours.UIColours(#MaxUIComponents)
  Global Dim brushHandle.brushHandles(#MaxUIComponents)
EndProcedure

_________________
http://www.PureBasicPower.de


Top
 Profile  
 
 Post subject: Re: Problems with ProGUI userlib
PostPosted: Wed Oct 06, 2010 3:48 pm 
Offline
Enthusiast
Enthusiast
User avatar

Joined: Wed Aug 10, 2005 2:08 pm
Posts: 558
Location: Yorkshire, England
Thanks for getting back to me ABBKlaus!

The following Testlib.pb as multilib reproduces the problem:

Code:
#MaxUIComponents = 256

Structure dynamicBlitEx ; used for storing list of different sized blitEx components
  hdc.i
  bitmap.i
  width.l
  height.l
EndStructure

Structure UIColours
  Blue.l
  Olive.l
  Silver.l
  Grey.l
  CustomBlue.l
  CustomOlive.l
  CustomSilver.l
  CustomGrey.l
 
  ; blitCache
  hdc.i
  bitmap.i
  width.l
  height.l
  List dBlitEx.dynamicBlitEx()
 
EndStructure

Structure brushHandles
  Handle.i
  colour.l
EndStructure

ProcedureDLL Testlib_Init()
  Global Dim UIWhidbeyColours.UIColours(#MaxUIComponents)
  Global Dim UIOffice2003Colours.UIColours(#MaxUIComponents)
  Global Dim brushHandle.brushHandles(#MaxUIComponents)
EndProcedure

ProcedureDLL StartProGUI(user.s, k1.l, k2.l, k3.l, k4.l, k5.l, k6.l, k7.l)
 
  x = x + 1
 
EndProcedure


Compile the following example in PB with threadsafe and/or unicode and the polink errors are reported:

Code:
StartProGUI("", 0, 0, 0, 0, 0, 0, 0)

Debug "testing"

End


Cheers,

Chris.

_________________
ProGUI - Professional Graphical User Interface Library - http://www.progui.co.uk


Top
 Profile  
 
 Post subject: Re: Problems with ProGUI userlib
PostPosted: Thu Oct 07, 2010 3:35 pm 
Offline
Enthusiast
Enthusiast
User avatar

Joined: Wed Aug 10, 2005 2:08 pm
Posts: 558
Location: Yorkshire, England
It's deffinately a problem with any type of "global dim" in Tailbite not just "global dim" of structures. I hope you can work on a fix soon! :)

Cheers mate,

Chris.

_________________
ProGUI - Professional Graphical User Interface Library - http://www.progui.co.uk


Top
 Profile  
 
 Post subject: Re: Problems with ProGUI userlib
PostPosted: Thu Oct 07, 2010 4:46 pm 
Offline
Addict
Addict

Joined: Sat Apr 10, 2004 1:20 pm
Posts: 1069
Location: Germany
thanks for the bugreport, its reproducable now.

Maybe i get on it next week, no time atm sorry :oops:

BR Klaus

_________________
http://www.PureBasicPower.de


Top
 Profile  
 
 Post subject: Re: Problems with ProGUI userlib
PostPosted: Thu Oct 07, 2010 9:10 pm 
Offline
Enthusiast
Enthusiast
User avatar

Joined: Wed Aug 10, 2005 2:08 pm
Posts: 558
Location: Yorkshire, England
ABBKlaus wrote:
thanks for the bugreport, its reproducable now.

Maybe i get on it next week, no time atm sorry :oops:

BR Klaus


No worries :) I'm glad it wasn't just on my system or a problem with the internals of ProGUI.

Cheers!

Chris.

_________________
ProGUI - Professional Graphical User Interface Library - http://www.progui.co.uk


Top
 Profile  
 
 Post subject: Re: Problems with ProGUI userlib
PostPosted: Mon Oct 11, 2010 5:56 pm 
Offline
Addict
Addict

Joined: Sat Apr 10, 2004 1:20 pm
Posts: 1069
Location: Germany
There is a bugfixed version ready for you to test.

http://www.tailbite.com/downloads/TailBiteV1.4.4.zip

Please confirm if it is working (or not) !

BR Klaus

_________________
http://www.PureBasicPower.de


Top
 Profile  
 
 Post subject: Re: Problems with ProGUI userlib
PostPosted: Mon Oct 11, 2010 6:23 pm 
Offline
Enthusiast
Enthusiast
User avatar

Joined: Fri Jun 26, 2009 3:51 pm
Posts: 194
Location: Westernmost tip of Norway
Thank you.

It works well for me, both with 1-D and 2-D arrays.

_________________
You never learn anything by doing it right.


Top
 Profile  
 
 Post subject: Re: Problems with ProGUI userlib
PostPosted: Tue Oct 12, 2010 4:26 pm 
Offline
Enthusiast
Enthusiast
User avatar

Joined: Wed Aug 10, 2005 2:08 pm
Posts: 558
Location: Yorkshire, England
Thanks ABBKlaus! :D works great now! :)

_________________
ProGUI - Professional Graphical User Interface Library - http://www.progui.co.uk


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 9 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  

 


Powered by phpBB © 2008 phpBB Group
subSilver+ theme by Canver Software, sponsor Sanal Modifiye