It does not happen if the line in the inner loop is commented out
It does not happen if the line in the inner loop is commented out
Then put some debug output into the loop and/or only add some values and not all to see what happens.
Yes, move semantics would be OK.using std::move
Is this a constant within the scope of the inner loop?data->tableContents.size()
You dereference tableData inside the loop. Is this guaranteed to be a valid pointer?auto tableData = data->tableContents.find(row);
This whole thing could be a red herring. too. It might be that there is an error somewhere earlier that has corrupted memory or the stack and is only manifest at this point in the code.
<=== The Great Pumpkin says ===>
Please use CODE tags when posting source code so it is more readable. Click "Go Advanced" and then the "#" icon to insert the tags. Paste your code between them.
Thank you all.
I was left with two things to test, just took me a while to get around to it.
So i first wondered if i was setting a part of the relational database which was linked to a foreign key. Although this would probably cause issues later on, it was not causing this issue.
The issue was simple (and rather daft), i was trying to set a numeric parameter in the database with a string.
None of us have ever made that kind of mistake :-)The issue was simple (and rather daft), i was trying to set a numeric parameter in the database with a string.
<=== The Great Pumpkin says ===>
Please use CODE tags when posting source code so it is more readable. Click "Go Advanced" and then the "#" icon to insert the tags. Paste your code between them.
Bookmarks