zzyycc / bulk-loader

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

stop() #115

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. a bulkloader instance is kept in an singleton class
2. a serie of images is loaded after calls to functions add("xxx") and
start(), this works fine
3. after loading is complete, function removeAll() is called and the event
listeners are removed
4. another series of images must be loaded in another class so I refer to
the bulkloader instance and add new event listeners.
5. After calling the add("xxx") function, bulkloader seems to autostart.

What is the expected output? What do you see instead?
I expected bulkloader to wait until I call start() again but the loading
starts automatically

What version of the product are you using? On what operating system?
bulkloader rev282 on windows 7

Please provide any additional information below.

thx for your reply

Original issue reported on code.google.com by martijn....@gmail.com on 26 Jan 2010 at 2:08

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
Hi Anonymous.

Yes, this is a very subtle one. I am inclined to think this is not a bug, 
here's why:
- remove**() : means to remove items.
- pauseAll() : means to stop it.

So the two are really orthogonal. You had stuff loading, ask it to remove them, 
add 
more items, it should continue the loading (as it was).

In this case if you want to remove items and stop the loading operation, you 
should 
call pauseAll after removeAll.

Best regards, 
Arthur

Original comment by debert on 28 Jul 2010 at 6:29