Page 1 of 1

PureBasic readable PB_Flags inside executeable !? bug?

Posted: Sun Jan 01, 2006 6:03 pm
by va!n
I think when using ExplorerListGadget() like in following small example code, there will be some "unused?" stuff inside the executeable!?

Code: Select all

If OpenWindow(0,0,0,500,500,#PB_Window_SystemMenu|#PB_Window_ScreenCentered,"Test") And CreateGadgetList(WindowID(0))
    ExplorerListGadget(0, 10, 10, 480, 480, "*.*", #PB_Explorer_MultiSelect)
    Repeat : Until WaitWindowEvent()=#PB_Event_CloseWindow
EndIf 
Stuff you can find in the executeable are:

Code: Select all

RHSDANTCOE
PB_Explorer_Column_Accessed
PB_Explorer_Column_Created 
PB_Explorer_Column_Attributes  
PB_Explorer_Column_Modified 
PB_Explorer_Column_Type 
PB_Explorer_Column_Size 
PB_Explorer_Column_Name 
ExplorerList_FakeParent
ExplorerList_ParentClass

Posted: Sun Jan 01, 2006 6:26 pm
by Fred
I don't see any unused stuff here, these labels are used in the explorerlistgadget() management.

Posted: Sun Jan 01, 2006 6:44 pm
by Polo
Fred wrote:I don't see any unused stuff here, these labels are used in the explorerlistgadget() management.
I don't know a lot about the PE format and all that stuffs, but I think he meant that these labels were quite long Pb_********_******_***** and that was growing the size of the exe (a very little bit of course) ;)

Posted: Sun Jan 01, 2006 7:45 pm
by Fred
these long names have been choosen to avoid possible conflicts with user defined names. It could have been shorter, but i don't think it really matter here, the listgadget itself is big.