One swing application blocks another

Discussion in 'Java' started by shenia_nim, Sep 13, 2004.

  1. shenia_nim

    shenia_nim Guest

    I have the following problem:
    One swing application is executed in the following way:
    - C++ code is executed via windows service
    - this C++ code runs a batch file.
    - the batch file executes swing application

    When this swing application starts, another swing application is
    executed from another place and is "stuck" on one of the

    first swing functions (pack() of Window class). It remains in task
    manager, doesn't throw any exception, resembles waiting in

    turn for some resource.
    The problem doesn't happen when the C++ code is executed from
    command line and not from the Windows service.
    It happens only on one computer.
    The set of environment variables is same on working and non-working
    computers.

    There are 2 swing functions in the 1st applications that cause the
    2nd appl-n to be stuck - UIManager.setLookAndFeel(...),

    JFrame() - these I found to be a problem, but there are certainly
    others.

    OS is Windows 2000, java - 1.4.2_03

    What resources are likely to be locked in this way?..
    shenia_nim, Sep 13, 2004
    #1
    1. Advertising

  2. On 13 Sep 2004 07:48:14 -0700, shenia_nim wrote:

    > I have the following problem:


    Given you posted the same questionon c.l.j.gui
    less than two minutes later, I will assume your
    problem is not having first realised the best
    group to which to post[1], rather than that you
    are multi-posting[2]..

    [1] <http://www.physci.org/codes/javafaq.jsp#groups>
    [2] <http://www.physci.org/codes/javafaq.jsp#xpost>

    --
    Andrew Thompson
    http://www.PhySci.org/ Open-source software suite
    http://www.PhySci.org/codes/ Web & IT Help
    http://www.1point1C.org/ Science & Technology
    Andrew Thompson, Sep 13, 2004
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Arjen
    Replies:
    3
    Views:
    425
    Scott Allen
    Feb 27, 2005
  2. loveNUNO
    Replies:
    2
    Views:
    892
    loveNUNO
    Nov 20, 2003
  3. Robert Cohen
    Replies:
    3
    Views:
    249
    Andrew Durstewitz
    Jul 15, 2003
  4. matt
    Replies:
    1
    Views:
    240
    George Ogata
    Aug 6, 2004
  5. Steven Taylor
    Replies:
    9
    Views:
    235
    Brian Candler
    Apr 27, 2009
Loading...

Share This Page