What do you mean "Full source dump"? You mean if all my source files were actually all one? If so it's a simple if that calls a function if required. I can't really explain that without providing god knows how much code as there are various function calls within that function. I'm quite sure it has nothing to do with that set of functions though. This crashing only seemed to start when I added the following simple functions. Basically it copies from one array to another. Theres 2 different versions and as far as I can tell enabling them causes instability.
Function DBPopulate_EL()
Local A As Integer
Local Count As Integer
Count=Array Count(EventLogDB())
Empty Array ScrollBox()
For A=0 To Count
If EventLogDB(A).Value=0
Array Insert At Top ScrollBox()
ScrollBox(0).I=EventLogDB(A).I
ScrollBox(0).C2=EventLogDB(A).Time
ScrollBox(0).C3=EventLogDB(A).T
ScrollBox(0).Col.R=EventLogDB(A).C.R
ScrollBox(0).Col.G=EventLogDB(A).C.G
ScrollBox(0).Col.B=EventLogDB(A).C.B
EndIf
Next A
EndFunction
Function DBPopulate_Acc()
Local A As Integer
Local Count As Integer
Local Balance As Float
Count=Array Count(EventLogDB())
Empty Array ScrollBox()
For A=0 To Count
If EventLogDB(A).Value>0
Array Insert At Top ScrollBox()
ScrollBox(0).I=EventLogDB(A).I
ScrollBox(0).C2=EventLogDB(A).Time+" "+EventLogDB(A).T
ScrollBox(0).C3=GenerateCurrencyString(EventLogDB(A).Value)
ScrollBox(0).C4=GenerateCurrencyString(EventLogDB(A).Value+Balance)
ScrollBox(0).Col.R=EventLogDB(A).C.R
ScrollBox(0).Col.G=EventLogDB(A).C.G
ScrollBox(0).Col.B=EventLogDB(A).C.B
Inc Balance,EventLogDB(A).Value
EndIf
Next A
EndFunction
Knowing what that "Internal code" means might help me figure out what's going on. I can't paste the code for where that array is used without pasting a huge lump of my GUI code, as it's basically creating an array of items to be displayed in a scrollable list. As standard I have a small few lines generating a random list before the main loop begins, making the list have 100 items, before either of the above functions are used. It never crashes with that list, if the above functions are disabled....if that makes sense!