Ow ow ow ow... sometimes even when the compile returns an error and you think everything is fine, bcc.exe sits and burns memory. And will sometimes hold on to the file.bmx.s file so successive compiles will return an error saying it couldn't find the file. I just had to clear out 5 running bcc.exe processes.
Wow. I didn't get that one yet =]
And it compiles fine. Definitely a bug in the compiler. At worst it should cause a syntax error in the compile.
OK, Well blow me down and call me Charlie. I guess Max doesn't handle stack screwups as elegantly as B3D did ;] In previous Blitz's, as you no doubt know, you could call a function, not collect the result and have it discarded nicely.
Really strange thing is that if you take out all the Local definitions after t:TAudioSample, the code works and compiles 100% fine - but -one- more and the compiler goes haywire. Looks like I just pushed it over the edge.
Thanks for your help K, I would -never- have thought of that!