However i forgot to say that, as Ian @ un4seen suggested, I used this simple line of code:
chan = BASS_StreamCreateFile(BASSFALSE, FileDialog.sFile, 0, 0, BASS_STREAM_DECODE Or BASS_MP3_SETPOS)
And it solved all my problems.
I was trying to use a progressbar to describe te overall status of the process, and I was setting
progressbar1.max=pos
but the BASS_STREAM_DECODE doesn't return always a correct value, and this cause the program to crash at the end of the conversion. Then i've added the BASS_MP3_SETPOS flag and now all works fine!
Thanks guys!
Bye