Why does my MATLAB-compiled library (DLL) fail to initialize after creating a deployment package in Visual Studio?
Show older comments
I have created a DLL with the MATLAB compiler, and I am able to use it successfully in the context of a larger application I have created in Visual Studio. Since I want to deploy this application to another computer, I used Visual Studio to create a deployment package for installation on the deployment machine. After installing the deployment package, I observe the following error when executing my application:
System.ArgumentException: Generate Queries threw General Exception:
System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
at mclGetString_proxy(Void**, SByte*)
at mwArray.{ctor}(mwArray*, SByte* str)
at ISRWrapper.Wrapper.CsvsStats(String inFolder, String outFolder)
at ISRWrapper.Wrapper.CsvsStats(String inFolder, String outFolder)
at Presentation.Forms.QueryGenOptionsForm.btnGenQry_Click(Object sender, EventArgs e)
Accepted Answer
More Answers (0)
Categories
Find more on MATLAB Compiler 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!