World Wind Forums

Go Back   World Wind Forums > WorldWind JAVA forums > Development Help

Development Help Help for building applications or diagnosing problems with WWJ

Reply
 
Thread Tools Display Modes
Old 07-20-2012, 08:00 PM   #1
phiferd
Junior Member
 
Join Date: May 2011
Posts: 8
phiferd is on a distinguished road
Default Stop BulkRetrievalThread

Is there a clean way to stop a BulkRetrievalThread? Specifically, I'm using BasicTiledImageLayer.makeLocal to cache small sections of imagery so they will be available offline. I can prompt the user about the expected file size, but if they accidentally click "ok" and the file set it really big, there's no way for them to stop the download. I put a ProgressPanel is a JFrame, and I can listen for when the close the window, but I hesitate to use something Thread.stop() and risk corrupting the cache.
phiferd is offline   Reply With Quote
Old 07-24-2012, 06:43 PM   #2
tag
WWJ Technical Manager
 
Join Date: May 2007
Location: Seattle
Posts: 1,027
tag is on a distinguished road
Default

Ideallly you'd be able to call interrupt() on the bulk downloader thread, but it looks like this will cause only Interrupted exceptions to be logged without stopping the process. We'll file a bug on this, but I'm not sure when we will be able to fix it.
tag is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may post new threads
You may 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
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I stop SessionCacheRetrievalPostProcessor? jmajchrzak2 Development Help 5 07-12-2011 08:19 PM
Proper technique for Plugin to stop rendering if unchecked? - Stars3d Ammianus Developers' Corner 1 09-14-2009 01:58 AM
Stop trying to save crap to the Program Files directory Unregistered Bug Reports 6 10-16-2008 01:49 AM
Stop Earth from Mouse Drag BowWow Developers' Corner 7 04-16-2007 04:49 PM
A way to Stop and Start downloading tiles. nlneilson Suggestion Box 8 12-20-2006 12:17 AM


All times are GMT +1. The time now is 11:17 PM.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.