Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

Trouble running Deployed MATLAB application from DVD

조회 수: 1 (최근 30일)
Michael B
Michael B 2016년 6월 7일
마감: MATLAB Answer Bot 2021년 8월 20일
Hello MATLAB wizards! I'm trying to distribute a MATLAB R2013 application to the folks in my office via a DVD. None have administrator rights or MATLAB installed, but they do have the MCR. My application is large and has many supporting files, so for ease of use and to conserve storage space, I want the application to run directly from the DVD. This works absolutely fine on my computer (I have MATLAB but no MCR). However, whenever I try to run the application on one of my colleagues' computers, it sits there, churning for about 5 minutes as if searching for something on the disk, then finally presents an "mclFreeStackTrace" error.
From my research, this error appears to be an issue with the .ctf file that was supposed to be embedded in the application by the compiler. I tried the commonly recommended workaround: forcing the compiler to save the .ctf file separately. I then extracted the contents of the .ctf file, and copied both the original and the extracted folder structure onto the DVD. No luck. It still runs fine on my machine, and spins for an eternity and finally coughs up the free stack trace error on my colleagues' computers.
Is there a way to point my application to the CTF archive in such a way that it can run from a read-only directory, like a DVD? Should I be saving the CTF to the DVD differently? Four months of work are hinging on getting this resolved. Help me Obi-Wan!
  댓글 수: 1
Michael B
Michael B 2016년 6월 23일
Okay, so after some extensive testing and suggestions from Mathworks, this appears to be an issue with the MCR, not the CTF Archive as I had originally thought. Although the Mathworks team has insisted a CTF archive cannot run from a read-only source directory like a DVD, I found that it will in fact do so provided the archive has already been extracted to the same location.
The MCR is another story. The MCR I need to use is hosted on a network location or available on a DVD; it cannot be installed on each and every client machine I want to run the application on for practical reasons. Although the MATLAB Compiler documentation suggests that it should be possible and even simple to run a deployed application using the MCR from a network folder, every attempt I've made to do so has failed. It is as if the application can see the MCR and read the files, but something critical is missing. And of course, the only error it generates is the useless mclFreeStackTrace popup.
So, if anyone has any idea what might be going on here, I'd love to hear it!

답변 (0개)

이 질문은 마감되었습니다.

제품

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by