I tried to use a List as argument in a Thread and get a "memory access error"... Do I miss something or it's just impossible ?
Sorry, it's hard form me to explain better in English.

Code: Select all
Structure Detail
ID.w : N.w
C1.w : C2.w
X1.w : X2.w
Y1.w : Y2.w
EndStructure
NewList Format_Menu.Detail() : AddElement(Format_Menu())
Format_Menu()\ID = SpriteID : Format_Menu()\N = NBoucle
Format_Menu()\C1 = BaseC : Format_Menu()\C2 = C
Format_Menu()\X1 = BaseX : Format_Menu()\X2 = X
Format_Menu()\Y1 = BaseY : Format_Menu()\Y2 = Y
Procedure Do_Format_Menu( List Format.Detail() )
ResetList(Format())
; While NextElement(Format())
; For A = 0 To Format()\N
; *Menu\ID[ Format()\ID+A ] = Format()\C1 + Format()\C2
; *Menu\X [ Format()\ID+A ] = Format()\X1 + Format()\X2*A
; *Menu\Y [ Format()\ID+A ] = Format()\Y1
; Next A
; Wend
EndProcedure
CreateThread(@Do_Format_Menu(), Format_Menu())
Repeat : ForEver