Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > One swing application blocks another

Thread Tools

One swing application blocks another

Posts: n/a
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

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

OS is Windows 2000, java - 1.4.2_03

What resources are likely to be locked in this way?..
Reply With Quote
Andrew Thompson
Posts: n/a
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] <>
[2] <>

Andrew Thompson Open-source software suite Web & IT Help Science & Technology
Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Methods and blocks - not that clear when blocks passed into Steven Taylor Ruby 9 04-27-2009 08:46 AM
Java 1.2 Swing vs. Java 1.5 Swing Big Daddy Java 2 04-16-2005 01:14 PM
"Building Blocks" are "Application Blocks" Arjen ASP .Net 3 02-27-2005 01:06 AM
procs/blocks - blocks with procs, blocks with blocks? matt Ruby 1 08-06-2004 01:33 AM