I copied this code as a sample to test threading but everytime
I compile, I get a 'CreateThread not found'.
I compiled and recompiled and it doesn't recognized any thread function.
My first step was that I:
svn update "c:\program files\blitzmax"
svn update "c:\program files\blitzmax\bin"
Then I change my path:
"c:\program filesblitzmax\bin\
And then did a
bmk makemods -a -h
Everything compiled fine; and when I go to compile the code below I get the error.
What am I forgetting?
I compile, I get a 'CreateThread not found'.
I compiled and recompiled and it doesn't recognized any thread function.
My first step was that I:
svn update "c:\program files\blitzmax"
svn update "c:\program files\blitzmax\bin"
Then I change my path:
"c:\program filesblitzmax\bin\
And then did a
bmk makemods -a -h
Everything compiled fine; and when I go to compile the code below I get the error.
What am I forgetting?
SuperStrict Import pub.threads Local Time:Int = MilliSecs() Local Thread:Int = CreateThread(WaitOnMe,Null) WaitThread(Thread) Print "I have waited "+(MilliSecs()-Time)+" milliseconds" Input() Function WaitOnMe:Object(data:Object) Print "In the WaitOnMe Thread" Delay(10000) Print "Finished Delay" End Function