Hi,
I'm trying my hand at threading again, this time I'm trying to start a thread from an activity with
Try
Dim t1 As Thread
t1.Initialise("")
t1.Start(Null, "LoadSongList", Array As Object(Null))
Catch
End Try
LoadSongList is defined
Sub LoadSongList(o As Object)
...
End sub
I'm aware that in debug mode threads don't work, but in release mode this just crashes my app and I don't have a clue why. I've had zero luck with threading so far. What am I doing wrong? Should I even be starting a thread from a service? Is there anything wrong with how I am initializing or starting the thread?
Cheers,
Richard
I'm trying my hand at threading again, this time I'm trying to start a thread from an activity with
Try
Dim t1 As Thread
t1.Initialise("")
t1.Start(Null, "LoadSongList", Array As Object(Null))
Catch
End Try
LoadSongList is defined
Sub LoadSongList(o As Object)
...
End sub
I'm aware that in debug mode threads don't work, but in release mode this just crashes my app and I don't have a clue why. I've had zero luck with threading so far. What am I doing wrong? Should I even be starting a thread from a service? Is there anything wrong with how I am initializing or starting the thread?
Cheers,
Richard