Page 2 of 2

Re: CLI Help - Adding Child to ccHObject* - CommandLine Visual Studio Debugging

Posted: Mon Oct 21, 2019 10:21 pm
by Charlesw
Awesome. Thankyou.

I'll definitely be using debug mode.

Its an issue with a loop somewhere in my code as no matter how many files I process, the first half of them return correctly and the latter half return null.
i.e. I processed 6 clouds in a folder. got 3 to return correctly and the last 3 returned null. Processed 4 and got 2 correct, and so forth.

I will do further debugging to see what is the issue.

Thanks again for your help!

Re: CLI Help - Adding Child to ccHObject* - CommandLine Visual Studio Debugging

Posted: Mon Oct 21, 2019 11:06 pm
by Charlesw
Thanks again. the issue was that I was looping a QStringList allSelectedFiles but at the end of the loop I was calling:

Code: Select all

allSelectedFiles.takeAt(i)

to get the string being stored for that loop. This was reducing the size of my list as takeAt() physcially removes the element from the list. I have now switched that code to use:

Code: Select all

allSelectedFiles[i]