Hi DanaPaul.
OK, it compile, i dont have error message anymore, the program works (i must deep try it) but when i close the app, first i do a bass_free and i get a error message "Handle is invalid" then, after (application.terminate) it crash.
I have try to use your unloadbassdll function, but the same occurs.
I m shure you get the answer.
Bye the way, bravo, great work, it functionates, and now i will test all the functions. (Have you try it with MixK that use the original bass.pas, i dont have find any problems, but i trust you, bass.pas with only comp variable could generate error, but it never occurs with me at the moment... ?)
NB It was not so easy to transform it for bass2.pas to use for bass2.dll (for multiple sound cards), but ok, i have done it and it seems to work too (without application.terminate of course)...