trying to find memory leak, deleted pointers etc

git-svn-id: file:///afs/psi.ch/project/sls_det_software/svn/slsDetectorSoftware@629 951219d9-93cf-4727-9268-0efd64621fa3
This commit is contained in:
l_maliakal_d
2013-07-10 09:31:29 +00:00
parent e8e2c7b3e4
commit cf30612701
6 changed files with 57 additions and 24 deletions

View File

@ -1517,7 +1517,21 @@ int stopStateMachine(){
#endif
bus_w16(CONTROL_REG, STOP_ACQ_BIT);
bus_w16(CONTROL_REG, 0x0);
usleep(500);
/*
int i;
for(i=0;i<10;i++){
if(!(bus_r(STATUS_REG)&RUNMACHINE_BUSY_BIT)){
printf("stoppped\n");
break;
}else{
usleep(5000);
printf("trying to stop again\n");
bus_w16(CONTROL_REG, STOP_ACQ_BIT);
bus_w16(CONTROL_REG, 0x0);
}
}
*/
usleep(5000);
// if (!runBusy())
if(!(bus_r(STATUS_REG)&RUNMACHINE_BUSY_BIT))
return OK;