-
Re: multi-threading problem with Java DataLine.Info object
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.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks