Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

About Null Exception #13

Closed
zdx199861 opened this issue Mar 2, 2022 · 2 comments
Closed

About Null Exception #13

zdx199861 opened this issue Mar 2, 2022 · 2 comments

Comments

@zdx199861
Copy link

image
image
the function "getlinkArcs‘’ in FLED.cpp causes exception all the time , why this happend?

@Li-Zhaoxi
Copy link
Owner

Li-Zhaoxi commented Mar 2, 2022

@zdx199861 This bug seems to appear in VS2017 or higher version.

you can replace GroupPart<linkArc> lA; with std::vector<linkArc> lA.

Some codes associated with ' lA' also need to be modified.

like,

lA[i]->idx_linking.push_back(j)' -> 'lA[i].idx_linking.push_back(j)
lA[i]->idx_notlink.push_back(j)' -> 'lA[i].idx_notlink.push_back(j)
lA[i]->idx_linked.push_back(j)' -> 'lA[i].idx_linked.push_back(j)

@zdx199861
Copy link
Author

thank you!!!!!!!!!! It works well!

beforelight added a commit to beforelight/AAMED that referenced this issue Mar 28, 2022
bug::the function "getlinkArcs‘’ in FLED.cpp causes exception when build type is 'Debug'.
fix::repleace 'GroupPart<linkArc> lA' to 'std::vector<linkArc> lA'.
Li-Zhaoxi added a commit that referenced this issue Mar 30, 2022
fix About Null Exception #13 
sincerely thanks for beforelight's work
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants