visual c++ runtime library error

7 次查看(过去 30 天)
Basanta
Basanta 2011-5-12
when I execute my simulation code, I am getting the visual c++ runtime library error ...
can anybody knows about the error and help....
  2 个评论
Kaustubha Govind
Kaustubha Govind 2011-5-12
Could you elaborate on what you mean by "simulation code" - are you running a MATLAB script or a Simulink model? Do you have any MEX-files or S-functions or calling into any shared libraries? It might be useful to also paste a snapshot of the error.
ALEJANDRA CARDENAS
ALEJANDRA CARDENAS 2015-2-19
I have the same problem, when I run my script and write some values appears this error:
Runtime error! Program C:\Program Files\MATLAB\R2011a\bin\win32\MATLAB.exe . . .
The values written spend call functions that derive from MEX-files and a .dll library
Appreciate your help.

请先登录,再进行评论。

回答(1 个)

Jordan
Jordan 2011-9-21
Not an answer but a similar problem: When executing my Matlab code (which also runs a simmechanics model) I often get the runtime error. Mostly, the first time running the simulation is ok. The second time I want to run it, or when I want to close it, I get the particular error.
Microsoft Visual C++ Runtime Library
Runtime Error!
Program: C:\Program files\MATLAB\R2007b\bin\win32\MATLAB.exe
This application requested the Runtime to terminate it in an unusual way.
Please contact the application's support team for more information.
I'm running Matlab 2007b on a Windows XP SP3 machine.
Anyone have solutions? Running it in windows 2000 compatibility mode didn't solve the problem.
I also think it is a combination of the software and the model. When running a more simple simmechanics model in Matlab 2007b I don't seem to get that error. Running the more complicated model in Matlab 2009 also seems to work without error. But my professor asked to do it in 2007 preferably.
  1 个评论
Kaustubha Govind
Kaustubha Govind 2011-9-21
This might be something you should report to Tech Support, especially is additional log files are generated with the runtime error. It is possible that there was a bug in R2007b that was fixed later.

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 Use Prebuilt MATLAB Interface to C++ Library 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by