tags:

views:

45

answers:

0

Hi,

@synchronized(self) { [webView_ stopLoading]; [webView_ removeFromSuperview]; [webView_ setDelegate:nil]; [webView_ release]; webView_ = nil; [self removeFromSuperview]; } The original code above:

em getting this error, By enabling NSZombie i get these two kind of messages at different time

  1. -[UIWebView webView:decidePolicyForNavigationAction:request:frame:decisionListener:]: message sent to deallocated instance 0x2eeff0

  2. -[UIScroller window]: message sent to deallocated instance 0xaf3bf10

Most of the time i get message 1.

Now if i not release the uiwebview then unable to produce the crash.

Wht i think for solution to release the uiwebview after some 100ms delay, so to avoid these.

Any recommendations / suggestions