This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Please Check mainwindow.cpp in backend directory of MIDAS demo3.

Other Parts Discussed in Thread: MIDAS

PLease check mainwindow.cpp in midas_usound_demo3_rel\miDAS\ultrasound\demo3\backend\src.

Line 642-646

642 strcpy(pUsParams->bpuFileName, fileNameB.toLocal8Bit().data());
 ~~~~~~~
643  strcpy(pUsParams->dpuFileName, fileNameColor.toLocal8Bit().data());
 ~~~~~~~~
644 setCmd.cmdBuf[MIDEND_CMD_BUFSIZE - 1] = '\0';
645

646 memcpy( &(setCmd.cmdBuf), pUsData, (MIDEND_CMD_BUFSIZE /*sizeof(MidEnd_UsParams_t)*/) );
           ~~~~~~
On line 642,643, codes set   pUsParams. But On line646, code uses UsData.
On line 644, code sets null for safity. But  line646 set data into cmdBuf[MIDEND_CMD_BUFSIZE - 1] .

These codes may not effect bad in fact.   But I can not understand them.
Please check mainwindow.cpp.

Thank you