BineTech / upnpx

Automatically exported from code.google.com/p/upnpx
0 stars 0 forks source link

Exceptions when running in seperate thread #22

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. run SSDP discovery in seperate thread and communicate SSDPDBUpdated to 
another thread
2. try a couple of times until exception
3.

What is the expected output? What do you see instead?

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

Please provide any additional information below.

in:  SSDPDBUpdated

instead of:

 NSUInteger index = [rootDevices indexOfObjectPassingTest:^BOOL(id obj, NSUInteger index, BOOL *stop){

do:

  NSMutableArray *tempArr = [rootDevices mutableCopy];

NSUInteger index = [tempArr indexOfObjectPassingTest:^BOOL(id obj, NSUInteger 
index, BOOL *stop){

same in addToDescriptionQueue

and the crashes go away...

If you need further info, please don't hesitate contacting me

Cheers

andy

Original issue reported on code.google.com by foxwerk...@gmail.com on 14 Aug 2013 at 9:57