Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
RE: [platform-swt-dev] Webstart process fails to terminate (Win32 SWT 3044)

Just to follow up, I found the solution (on 1.4.2_04 anyway) to the problem below.
 
The "Unoffical Webstart FAQ" led me to the correct answer (http://lopica.sourceforge.net/index.html), which is that on the first launch Java WebStart pops up some Swing-based panels to prompt for certificate acceptance and desktop integration.  These popups don't appear on the second or subsequent launches.  Since the Swing threads got started, all that is needed is to ensure the app exits with a call to System.exit(), something that was not necessary for my SWT-based UI when run by itself.  I added the System.exit() and now it exits the javaw.exe process.
 
SWT works great via webstart!
 
- Jason
-----Original Message-----
From: platform-swt-dev-admin@xxxxxxxxxxx [mailto:platform-swt-dev-admin@xxxxxxxxxxx]On Behalf Of Jason Sando
Sent: Friday, May 14, 2004 3:10 PM
To: platform-swt-dev@xxxxxxxxxxx
Subject: RE: [platform-swt-dev] Webstart process fails to terminate (Win32 SWT 3044)

Windows 2000 sp4, Sun JRE 1.4.2_04.
 
Its not happening now, however (apparently since I switched from JDK 1.5.0).  I even tried not disposing of images, colors, and fonts and its not hanging on exit any longer.
 
I'll post again if I can reproduce it.
 
Thanks,
 
- Jason
 
-----Original Message-----
From: platform-swt-dev-admin@xxxxxxxxxxx [mailto:platform-swt-dev-admin@xxxxxxxxxxx]On Behalf Of Jesse Hill
Sent: Friday, May 14, 2004 1:46 PM
To: platform-swt-dev@xxxxxxxxxxx
Subject: Re: [platform-swt-dev] Webstart process fails to terminate (Win32 SWT 3044)


Which platform is this? win32 should clean up automagically but I've seen problems on pocket pc where the window procs must be terminated explicitly (by correctly disposing your widgets) or they prevent the vm from shutting down cleanly.

-Jesse



Steve Northover <Steve_Northover@xxxxxxxxxx>
Sent by: platform-swt-dev-admin@xxxxxxxxxxx

05/14/2004 11:00 AM

Please respond to
platform-swt-dev

To
platform-swt-dev@xxxxxxxxxxx
cc
Subject
Re: [platform-swt-dev] Webstart process fails to terminate (Win32 SWT 3044)






SWT absolutely does not create any threads on your behalf.  When you exit, resources are automatically reclaimed by the operating system.



"Jason Sando" <jsando@xxxxxxxxxxxxxx>
Sent by: platform-swt-dev-admin@xxxxxxxxxxx

05/14/2004 01:48 PM

Please respond to
platform-swt-dev

To
<platform-swt-dev@xxxxxxxxxxx>
cc
Subject
[platform-swt-dev] Webstart process fails to terminate (Win32 SWT 3044)








I'm deploying a SWT application via webstart.  When the application exits,
the webstart process (javaw.exe) was failing to terminate, such that when I
deployed an updated version of the application and tried to launch it, it
couldn't unpack the DLL jarfile, because the old copy of the .dll's were
still in use.

I used Sleak to find resource disposal problems and found I wasn't disposing
my images, fonts, and colors, and now I think the problem has been
corrected.

I also dropped back to Sun JRE 1.4.2_04, whereas I had been testing on Sun
1.5.0.

When I run the application from the command line I don't have this problem,
the Java runtime exits normally.

So here's the question: is there a daemon thread or something that continues
running in SWT until I free up ALL of my resources?  Why would this
application exit when run standalone but not under Webstart?

Thanks,

- Jason

_______________________________________________
platform-swt-dev mailing list
platform-swt-dev@xxxxxxxxxxx
http://dev.eclipse.org/mailman/listinfo/platform-swt-dev



Back to the top