send us the complete code, so we can take a look better.

Leonardo Kasperavicius



"james" <jqiu@siebel.com> escreveu na mensagem
news:3f133e80$1@tnews.web.devx.com...
>
> I wrote a straightforward program to play a .wav sound file. The whole

program
> is written in one big main. It runs in a DOS Window on a Windows 2K

machine.
>
> After the program is executed, it can play the file, but it does not quit.
> After debugging, I found that I have the two lines of code which causes

the
> problem:
> DataLine.Info info = new DataLine.Info(SourceDataLine.class, format);
> if (!AudioSystem.isLineSupported(info)) { error handling }
>
> The program is a single threaded program. However, it seems that somewhere
> a second thread never ends.
>
> Can anyone shed some light on this?
>
> Thanks in advance.