V75-Bug: BBThread is private

Monkey Forums/Monkey Bug Reports/V75-Bug: BBThread is private

Midimaster(Posted 2013) [#1]
hi Mark,

back again with the bug from my last post....

Now I was able to reproduce it. It only happens on the HTML5 target. This sample code demonstrates the problem:

Strict
Import mojo

Class Game Extends App Implements IOnLoadSoundComplete
	
	Method OnCreate%()
		SetUpdateRate 10
		LoadSoundAsync  "test.ogg", Self
		Return 0
	End	


	Method OnUpdate%()
		Return 0
	End	


	Method OnRender%()
		DrawText Millisecs(),30,30
		Return 0
	End	
	
	
	Method OnLoadSoundComplete:Void ( sound:Sound, path:String, source:IAsyncEventSource )
	End
	
End

Function Main%()
	New Game
	Return 0
End


the same happens with the async image loading....


Ah I see, the bug was already reported and seems to be fixed in V76d. But what can I do, if I want to use the last stable version of monkey?

Is that a possible solution?

instead...
Class AsyncImageLoaderThread Extends BBThread="BBAsyncImageLoaderThread" 

better this:
Class AsyncImageLoaderThread Extends Thread 

???

Or should I copy the source code "asyncsoundloader.monkey" from V76d to V75?


marksibly(Posted 2013) [#2]
v76d should be pretty much 'good to go' now - I'd upload v77b and 'promote' it, but I'm not quite sure where/how to upload stuff to the new site yet! Awaiting instructions from SiH...