Julie:

Thank you very much for the idea.  

Your idea was correct.  When I finally set up the code to properly
consume the generated output, Rosegarden also started (and ran)
asynchronously.  

- Aere


On Thu, 2012-03-08 at 20:18 -0800, Julie S wrote:

> Hello Aere,
> 
> when Runtime.exec() is run, it returns a Process Object:
> http://docs.oracle.com/javase/6/docs/api/
> 
> RG sends lots of into to the main output streams,  If you are not
> reading from the streams, this may cause the application to block (see
> api documentation link above).
> 
> RG sends lots of stuff to standard output on startup.  So if the
> stream is not getting drained, this will create blocking -- probably
> the blocking you are experiencing.
> 
> Sincerely,
> Julie S.
> 
> --- On Wed, 3/7/12, Aere Greenway <[email protected]> wrote:
> 
>         
>         From: Aere Greenway <[email protected]>
>         Subject: [Rosegarden-devel] Question on running Rosegarden
>         from inside a Java program
>         To: "Rosegarden Developers"
>         <[email protected]>
>         Date: Wednesday, March 7, 2012, 8:08 PM
>         
>         
>         Rosegarden Developers:
>         
>         I have been experimenting with running various Linux MIDI
>         components from within a Java program, and my experiments have
>         been successful, with one exception:
>         
>         When I attempt to run rosegarden from within the Java program
>         (using an instance of the "Runtime" class,  and its "exec"
>         method), the new subprocess does not start up until after the
>         Java program is terminated.  Then it (rosegarden) starts up,
>         and runs with no problems.  
>         
>         None of the other MIDI components I am controlling with the
>         Java program (qjackctl, qsynth, vmpk, and audacious) behave
>         this way.  They all start up (and run) immediately, and
>         asynchronously.  
>         
>         I don't think it's a matter of rosegarden needing a lot of
>         resources, since I have been able to start the gimp, and even
>         virtualbox (in its place) from within the Java program.  Even
>         if rosegarden is the only program I start within the Java
>         program, it won't start until after I terminate the Java
>         program.  
>         
>         Do any of you have any idea of why this happens, and if so, is
>         there any way to work around it?  
>         
>         I am using Lubuntu 11.10 , which uses the 11.06 "Don Juan"
>         version of Rosegarden, and I am using Open Java 6 (from the
>         Ubuntu distribution).  
>         
>         -- 
>         
>         Sincerely,
>         Aere
>         
>         -- 
>         
>         Sincerely,
>         Aere
>         
>         
>         -----Inline Attachment Follows-----
>         
>         
>         
> ------------------------------------------------------------------------------
>         Virtualization & Cloud Management Using Capacity Planning
>         Cloud computing makes use of virtualization - but cloud
>         computing 
>         also focuses on allowing computing to be delivered as a
>         service.
>         http://www.accelacomm.com/jaw/sfnl/114/51521223/
>         
>         
>         -----Inline Attachment Follows-----
>         
>         
>         _______________________________________________
>         Rosegarden-devel mailing list
>         [email protected] - use the link below to
>         unsubscribe
>         https://lists.sourceforge.net/lists/listinfo/rosegarden-devel


-- 

Sincerely,
Aere
------------------------------------------------------------------------------
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing 
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
_______________________________________________
Rosegarden-devel mailing list
[email protected] - use the link below to unsubscribe
https://lists.sourceforge.net/lists/listinfo/rosegarden-devel

Reply via email to