I'm trying to use my plugin with the current VREP version (3.1.1) on Mac. It seems simLoadScene (which calls simLoadScene_internal ?) crashes, even if the scene path is valid. I try with older versions of VREP and everything was ok.
My plugin is a sort of remote API especially made for my experiments. The problem occurs in this short example code:
Code: Select all
char * scene = simCreateBuffer(SIM_BUFFER_SIZE);
try{
int ret = -1;
toProcess->readNextString(scene, SIM_BUFFER_SIZE);
if(strcmp(scene, DEFAULT_READ_NEXT_STRING) != 0)
ret = simLoadScene(scene);
toAnswer->appendInt(ret);
}catch(const std::string& e){
handleException(e, toAnswer);
}
simReleaseBuffer(scene);
Cheers.