iphone - wait_fences: failed to receive reply: 10004003 error - UIAlertView with UIActivityIndicatorView -


i hoped answers squeezemylime's question solve problem have uialertview without text field did not work out well. instead of text field placed uiactivityindicatorview animating on , no buttons used on creation. alert gets programmatically dismissed delegate method destroys spinner on alert , alert (which has been retained through time running).

so, i'm getting these wait_fences: messages within debugger , i'm frozen in meantime because tried including valuable hints in thread won't kill these wait_fences: messages. there no crash, neither gdb nor on device.

stepping through code realized wait_fences: message shown directly after delegate dismisswithclickedbuttonindex:0 animated:no releases questionable uialertview. thought similar squeezemylime's delay technique , did this:

[thealertobj performselector:@selector(dismisswithclickedbuttonindex:animated:) withobject:nil afterdelay:0.1]; 

and wait_fences: message gone! call dismisswithclickedbuttonindex:animated: can't satisfied because missing second argument animated:no - tried changes implementing method call:

- (void)dismissnamedalert: (uialertview*)alert {     [alert dismisswithclickedbuttonindex:0 animated:no]; }  - (void)postprocesslogicalwork: (id)arg {     [self performselector:@selector(dismissnamedalert:) withobject:thealertobj afterdelay:0.2];     ... } 

bummer: wait_fences: message re-appeared! think can't go working solution having unsatisfied method call - how can done? and/or under circumstances these wait_fences: messages occur?

briefly workflow thing this:

  • viewdidappear calls super , data updater afterdelay:0.3f
  • the data updater invokes new thread update procedure
  • the new thread creates , displays alert spinner on main thread , runs seconds
  • the new thread performs finishing procedure on main thread , done
  • the finisher dismisses alert described above (with wait_fences:) , refreshes display if needed
  • the rest idle time ... moment being

any ideas do?

i don't know reason why thing happens sort out problem changing line

[alert dismisswithclickedbuttonindex:0 animated:no]; 

to one

[alert dismisswithclickedbuttonindex:0 animated:yes]; 

Comments

Popular posts from this blog

c# - How to set Z index when using WPF DrawingContext? -

razor - Is this a bug in WebMatrix PageData? -

visual c++ - Using relative values in array sorting ( asm ) -