"Attempted to read or write protected memory exception" in using MWArray.dll
4 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Sir,
I have created matlab dll using a 32 bit matlab compiler.Now, I am working on 64-bit windows-8. I have a C# application, which use this dll, but when i try to execute this application,i get the exception, which is shown below.
I have looked at the similar questions, i have tried the possible solutions like checking some other instances of the mclmcrrt78.dll. I have 2 partitions in my hard disk, one has windows-7, on which matlab 32 bit compiler is installed and on one partition windows-8 is installed. So i have the instances of the mclmcrrt78.dll in other drive (which is the system partition(C:Drive for windows-7)). Is that the reason for ths exception??
How should i go about this problem??
This is the exception i get in Visual Studio-2012 on windows-8:
InnerException: System.TypeInitializationException HResult=-2146233036 Message=The type initializer for 'MathWorks.MATLAB.NET.Arrays.MWArray' threw an exception. Source=MatlabPolyOperations TypeName=MathWorks.MATLAB.NET.Arrays.MWArray StackTrace: at MatlabPolyOperations.MatlabPolyOperationsclass..cctor() InnerException: System.AccessViolationException HResult=-2147467261 Message=*Attempted to read or write protected memory. This is often an indication that other memory is corrupt.* Source=MWArray StackTrace: at MathWorks.MATLAB.NET.Utility.MWMCR.mclInhibitShutdown() at MathWorks.MATLAB.NET.Utility.MWMCR.InitializeApplication(String[] startupOptions) at MathWorks.MATLAB.NET.Arrays.MWArray..cctor() InnerException:
I have
0 Commenti
Risposte (0)
Vedere anche
Categorie
Scopri di più su MATLAB Compiler SDK in Help Center e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!