3

My application loads 60 files at the same time. I mean I create 60 loaders (in an array) and start all loadings in a loop, I don't wait for one to complete before I start the next. I use a class that extends URLLoader to load xml, bin, png, mp3 and swf.

I log when users get a IOErrorEvent, and I see error 2032 happen sometimes, not always with the same file, and when I try again, the loading completes.

Do you know why I could have a random 2032 error with URLLoader ?

Edit : Is URLLoader appropriate to load many files at a time ? Should I better have an open connection, request all the files, then close the connection ?

user1883136
  • 101
  • 10
  • Maybe You should limit load stack to 5-10 files ? – turbosqel Dec 11 '12 at 12:38
  • Regardless, you should set up a limit and load a new file only when another is finished, start with 5 and then keep increasing the total number of concurrently open files and see if there is a limit before you start getting the error. It might be with any more than one file at a time, but this is worth knowing. – Gone3d Dec 11 '12 at 15:33
  • I thought browsers handle this. They seem to load only 4 or 5 files at a time, and block the rest, waiting for one file to complete. We can't rely on browsers ? – user1883136 Dec 12 '12 at 11:54
  • I tried to use Sound for mp3, URLLoader for xml/bin and Loader for png/swf, but still the same random 2032 errors. I tried to load one file at a time and I still log some users have the same IOError... – user1883136 Dec 21 '12 at 16:30

1 Answers1

0

It could be because of improper handling of Loader Events and data associated with it.

You can try using:

BulkLoader Class by Arthur Debert

they have done some reliable work in this regard.

yawar
  • 629
  • 3
  • 8