zzyycc / bulk-loader

Automatically exported from code.google.com/p/bulk-loader
0 stars 0 forks source link

a queue of images will stop loading if one of them is broken link #71

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. having a queue of images to be loaded
2. one image is broken link
3. no image is coming at the end

What is the expected output? What do you see instead?
i expect to have the rest of the images loaded

What version of the product are you using? On what operating system?
BulkLoader-rev239

Please provide any additional information below.
A good idea is to have the broken link (image) out of the queue while the
rest of the files will load normally. Any ideas, Am I doing something wrong?

Original issue reported on code.google.com by gir...@gmail.com on 15 Jan 2009 at 9:42

GoogleCodeExporter commented 8 years ago
I have the same issue. This is related to issue 68 I think, too.

Original comment by jered.cu...@gmail.com on 15 Jan 2009 at 11:04

GoogleCodeExporter commented 8 years ago
Hi Folks.

I think we may need more information here.
This is fixed as of revision 247. 

Please note that if an item fails to load, BulkLoader won't remove it on it's 
own. It's up to client code to listen 
for ERROR events and decide what to do.

Cheers
Arthur Debert

Original comment by debert on 18 Jan 2009 at 4:25

GoogleCodeExporter commented 8 years ago
Hi,

Ok i see that BulkLoader won't remove it on it's own but what's the way to do 
it.
I am trying this but doesn't seems to work properly.

function handleLoaderError(e:ErrorEvent):void
{ 
    var src:Object = e.target; 
    initXmlLoader.remove(src);
}

any ideas?
Cheers

Original comment by gir...@gmail.com on 18 Jan 2009 at 9:19

GoogleCodeExporter commented 8 years ago
Hi Giroin.

Yup, this currently does not work, as target is assigned to bulkLoader. I need 
to make the event retain the 
target, but it's not clear how to do this, since BulkLoader has to intercept 
the event (so it can check if multiple 
tries have been made).

I migh need to restore a custom BulkErrorEvent, and keep the original item 
somewhere... I am still thinking 
over this...

For now, inside your event handler, you can do something like:
bulkLoader.removeFailedItems();

Cheers
Arthur debert

Original comment by debert on 19 Jan 2009 at 11:37