visual c++ runtime library error
7 views (last 30 days)
Show older comments
when I execute my simulation code, I am getting the visual c++ runtime library error ...
can anybody knows about the error and help....
2 Comments
Kaustubha Govind
on 12 May 2011
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
on 19 Feb 2015
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.
Answers (1)
Jordan
on 21 Sep 2011
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 Comment
Kaustubha Govind
on 21 Sep 2011
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.
See Also
Categories
Find more on Use Prebuilt MATLAB Interface to C++ Library in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!