basic PB commands, I don't understnd where is the problem coming from.
the last 3 I had (within an hour) were on these commands :
- EndProcedure
- SetGadgetState(#ListIconDL, n) : Delay(150)
- If OpenWindow(#Window_Validity, DesktopWidth(0)*nb_bureau+DesktopWidth(0)*0.02, DesktopHeight(0)*0.15, ImageWidth(#Img_Valid), ImageHeight(#Img_Valid), "Validity", #PB_Window_Tool|#PB_Window_BorderLess|#PB_Window_Invisible)
Do I have to wipe PB and make a clean install again?
Can a lot of lib generate this kind of problems?
Also lately I've been having a few "not initialised" bugs generaly all with the same procedure :
Code: Select all
Procedure SetImageWin(*ipara.metre)
nb_bureau = ExamineDesktops() - 1
CatchImage(#Img_Valid, ?ValidID) : ValID = ImageID(#Img_Valid)
CatchImage(#Img_Invalid, ?InvalidID) : InvalID = ImageID(#Img_Invalid)
If OpenWindow(#Window_Validity, DesktopWidth(0)*nb_bureau+DesktopWidth(0)*0.02, DesktopHeight(0)*0.15, ImageWidth(#Img_Valid), ImageHeight(#Img_Valid), "Validity", #PB_Window_Tool|#PB_Window_BorderLess|#PB_Window_Invisible)
If CountGadgetItems(#ListIconDL) = *ipara\index + 1
If *ipara.metre\ValidID = 1 : SetImage(WindowID(#Window_Validity), ValID)
ElseIf *ipara.metre\ValidID = 0 : SetImage(WindowID(#Window_Validity), InvalID)
EndIf
HideWindow(#Window_Validity, 0) : StickyWindow(#Window_Validity, 1)
Delay(750)
CloseWindow(#Window_Validity)
EndIf
EndIf
ClearStructure(*ipara, metre)
FreeMemory(*ipara)
EndProcedure