Why do I receive an "Unspecified error" for my ASP.NET application that calls a MATLAB Builder for COM/.NET component?

1 Ansicht (letzte 30 Tage)
I have created a COM/.NET component using MATLAB Builder for COM/.NET to generate a MATLAB figure for my ASP.NET application. I followed the example described in Solution 1-2EETRY listed below, and I notice that when I call my COM/.NET component multiple times from my ASP.NET application, I observe the following error:
Unspecified error
instead of a MATLAB plot. This error may happen sporadically and is not always reproducible.

Akzeptierte Antwort

MathWorks Support Team
MathWorks Support Team am 27 Jun. 2009
The cause of this error is rooted in the way that ASP.NET applications do garbage collection. In order to resolve this error, be sure to insert:
close all force;
as the last line of code for the M-function that you are compiling into a COM/.NET component.

Weitere Antworten (0)

Kategorien

Mehr zu MATLAB Compiler SDK finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by