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

Leonardo Kasperavicius

"james" <> escreveu na mensagem
> I wrote a straightforward program to play a .wav sound file. The whole

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

> 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

> 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.