Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9152155
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T11:58:26+00:00 2026-06-17T11:58:26+00:00

I am creating a workflow to navigate through websites, every step of the workflow

  • 0

I am creating a workflow to navigate through websites, every step of the workflow has to load n frames and then knows its ready (I have to implement the timeout).

I don’t understand why [self next] is giving me this error:
* -[WebWorkflow next]: message sent to deallocated instance 0x105796ef0

Considering this delegate function:

- (void)webView:(WebView *)sender didFinishLoadForFrame:(WebFrame *)frame {
    frameCounter++;
    NSInteger frames = [(WebWorkflowStep *)[steps objectAtIndex:index] frames];
    NSLog(@"Frame counter %ld of %ld", frameCounter, frames);
    [self next];
}

And this next method:

-(void) next
{
    if ( index < [steps count])
    {
        frameCounter = 0;
        index = index + 1;
        WebWorkflowStep *step = [steps objectAtIndex:index-1];
        NSDictionary *userInfo = [NSDictionary dictionaryWithObject:step forKey:@"selector"];
        [[NSNotificationCenter defaultCenter] postNotificationName:EVENT_WORKFLOW_NEXT object:nil userInfo:userInfo];

    }
}

Notes:

– WebWorflow a.k.a ‘self’ has been created/binded by another class with strong

Like so:

@interface AController : NSObject <APIProtocol>
{
    WebView *webview;
    NSMutableArray *accounts;

    WebWorkflow *workflow;
}

@property (strong) WebWorkflow *workflow;

...

I do create the workflow like this:

workflow = [[WebWorkflow alloc] initWithWebView:webview];
    NSArray *getPicturesWorkflow = [NSArray arrayWithObjects:
                                            [[WebWorkflowStep alloc] initWithSelector:@"open" andLoadFrames:0],
                                            [[WebWorkflowStep alloc] initWithSelector:@"login" andLoadFrames:2],
                                            [[WebWorkflowStep alloc] initWithSelector:@"getPictures" andLoadFrames:8],
                                             nil];
            [workflow setSteps:getPicturesWorkflow];

And it gets initialized like:

-(id)initWithWebView:(WebView *)webview
{
    self = [ super init];
    if(self) {
        timeout = 10;
        index = 0;
        web = webview;
        frameCounter = 0;
        [web setFrameLoadDelegate:self];
    }
    return self;
}
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T11:58:28+00:00Added an answer on June 17, 2026 at 11:58 am

    The AController instance owns a web view and is the web view’s delegate. The AController instance is getting released (for some reason…we’d need to see how it’s owner manages it). Since it might get released during a load, it should clean up after itself as follows:

    - (void)dealloc {
        [web stopLoading:self];  // or webView, not sure what you call it
    }
    

    This will prevent the crash. It will also abandon the load. If you don’t want to do that, you’ll need to figure out why the AController instance is being released.

    The first step in doing that would be a breakpoint in the dealloc method.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm creating a workflow in Microsoft Dynamics CRM 2011. I have a step which
I have a Workflow 4.0 app that generates emails. In a dialog for creating
We have used the Factory/Singlton pattern for creating a workflow runtime. When we run
I'm creating an application that rehost the workflow designer and that can load an
I am having trouble understanding the workflow for creating a go project that has
I'm creating a custom WSS workflow in Visual Studio 2008 and have a 'create
I am creating a windows workflow(using WCF) that waits infinitely until user(s) perform some
I'm creating an STA version of the SynchronizationContext for use in Windows Workflow 4.0.
I am creating long running workflow with will create a Bookmark for the persistance.
Our team is creating a new recruitment workflow system to replace an old one.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.