I have a xbrowse with 128 columns, and for each column I add 11 bmp's from resource.
That is working file, but if I open and close the browse 20 times, the program quit.
If a leave te BMP's out, I dont have a problem.
How can I free them from memory?
- Code: Select all Expand view
- vGetlist := TXBrowse():New( oDlg )
FOR i = 1 to 128
oCol := vGetlist:AddCol()
oCol:bStrData := &('{ || tmp->naam'+padl(i,2,'0')+'}')
oCol:cHeader := 'N'+str(i)
oCol:nWidth := 60
oCol:lAllowSizing := .f.
oCol:AddResource("C_BOVEN")
oCol:AddResource("C_BOVENE")
oCol:AddResource("C_MIDDEN")
oCol:AddResource("C_ONDER")
oCol:AddResource("C_ENKEL")
oCol:AddResource("C_ENKELE")
oCol:AddResource("C_BOVENP")
oCol:AddResource("C_BOVENX")
oCol:AddResource("C_ENKELP")
oCol:AddResource("C_ENKELX")
oCol:AddResource("C_GEEN")
NEXT i
I already try with oCol:=nil and vGetlist:=nil, without result