Skip to content
Discussion options

You must be logged in to vote

Thanks for the detailed feedback.
Problem reproduced and solved by allocating the task on the heap:


    XFoilTask *pTask = new XFoilTask;

    std::cout << "Initializing XFoil task" << std::endl;

    pTask->initialize(*pFoil, pPolar, bKeepOpps);
    pTask->appendRange({true, 0.0, 11.0, 1.0});
    pTask->appendRange({true, 0.0, -7.0, 1.0});

    std::cout << "Running XFoil task" << std::endl;
    pTask->run();
    printf(pTask->log().c_str());
    printf("\n");
    std::cout << "XFoil task done" << std::endl << std::endl;

    // Retrieve the results and insert them one by one in the database so that they are
    // stored in sorted order.
    // This ensures that they will be properly d…

Replies: 4 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by RoxtroffJ
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants