Skip to content

error "This may be due to a corruption of the heap,or any of the DLLs it has loaded" when running cmt.initialise() function #14

@lethanhtoan2004

Description

@lethanhtoan2004

Hi all,
I download the lasted code from the website and run but always received the error "This may be due to a corruption of the heap,or any of the DLLs it has loaded" when running the cmt.initialise ( ) function.
I tried to debug line by line and detected that there are problems at the following line of code
std::vectorstd::string list;
cv::Algorithm::getList(list);

std::vectorcv::KeyPoint keypoints;
detector->detect(im_gray0, keypoints);
I tried out two way to make the function works
First method, "list" and "keypoints" variables declared as static variables something like
static std::vectorstd::string list;
cv::Algorithm::getList(list);

static std::vectorcv::KeyPoint keypoints;
detector->detect(im_gray0, keypoints);

Second method, move those variable to cmt() constructor

I am not sure is there anyone here facing the same error like me when running the program. I wonder whether two method i made here to make the function works is correct or not. if you know better solution and explain me why the error happens and what is the right or potential solution to fix the issue , i would appreciate your help. Thank you very much.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions