I have a collection of functions that I just exported in a dll. Everything compiles fine and links fine. Some functions work well (as before), others seem to work fine at first (the function executes without apparent error, but once the function returns and the function calling it returns too, there is a crash.
What is wrong?
Before, the functions looked like, at that worked fine:
bool algos_getConvexHull(
std::vector<float>* verticesIn,
std::vector<int>* indicesIn,
std::vector<float>* verticesOut,
std::vector<int>* indicesOut)
{
return(CAlgos::getConvexHull(verticesIn,indicesIn,verticesOut,indicesOut));
}
Now, the exported functions look like that, and not all of them perform without crash (this one in particular is crashing):
__declspec( dllexport ) bool algos_getConvexHull(
std::vector<float>* verticesIn,
std::vector<int>* indicesIn,
std::vector<float>* verticesOut,
std::vector<int>* indicesOut)
{
return(CAlgos::getConvexHull(verticesIn,indicesIn,verticesOut,indicesOut));
}
What can I have done wrong?