Carmaker for simulink mex file not unloaded from memory

조회 수: 4 (최근 30일)
Omkar Karve
Omkar Karve 2021년 7월 24일
편집: Walter Roberson 2025년 2월 5일
I am using Matlab 2020b and Carmaker 10. When I run(simulate) Carmaker for Simulink model (even the generic model) for the first time (after a full Matlab restart), it runs fine and I can stop the simulation. But when I run (by either pressing Simulate on Simulink or Start on Carmaker GUI) it again, I get this error. I have tried munlock, clc, clear. But nothing seems to work and I have to restart matlab entirely as suggested by the error. This error seems to suggest for some reason, the libcarmaker4sl.mexw64 was not unloaded from Matlab in the previous run. Any ideas why this might be happening? (I repeated the same experiment with 2019a and CM 9.1 with same results).
  댓글 수: 4
Andreas
Andreas 2022년 5월 30일
Same here.
Did you find any solution?
Omkar Karve
Omkar Karve 2022년 5월 30일
Unfortunately no. No one knows why this is happening.

댓글을 달려면 로그인하십시오.

답변 (1개)

D. Linke
D. Linke 2025년 2월 5일
Hello everyone,
we finally found a solution for this issue. In the registry editor open the following key:
Computer\HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Layers
Look for any entries that have the path to a MATLAB executable as name and have the following value:
$ IgnoreFreeLibrary<libcarmaker4sl.mexw64>
If there is one or more such entry the solution is to simply delete it.
We don't know where this entry comes from but as the key suggests it might be related to the Microsoft Compatibility Assistant.

카테고리

Help CenterFile Exchange에서 Startup and Shutdown에 대해 자세히 알아보기

제품


릴리스

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by