Info

Diese Frage ist geschlossen. Öffnen Sie sie erneut, um sie zu bearbeiten oder zu beantworten.

Matlab NE Builder "Access Violation"

1 Ansicht (letzte 30 Tage)
Bryan
Bryan am 4 Jun. 2013
Geschlossen: MATLAB Answer Bot am 20 Aug. 2021
I'm using deploytool to create a Matlab class (MLTestClass) with a method (makeSqr) as shown in the MathWorks tutorial linked below. After importing the relevant libraries in Visual Studio 2012, the line `MLTestClass obj = new MLTestClass();` causes the program to crash with an "Access Violation." I'm using MCR v8.1. I've seen somewhere that this can be caused by compiling the .m file with the wrong compiler, but the only compiler I have on my computer (according to `mbuild -setup`) is "Microsoft Visual C++ 2012" (although I'm compiling for use in a C# project, if that makes a difference).
Thanks for any help!
  1 Kommentar
Bryan
Bryan am 5 Jun. 2013
I think that it may be a problem where I'm using a 64-bit version of Matlab 2013a, and Visual Studio is only 32-bit. Is there any way to get around this?

Antworten (0)

Community Treasure Hunt

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

Start Hunting!

Translated by