Why do I recieve a runtime error when using a COM object built with MATLAB Builder for COM 1.1.2 (R14SP1)?
조회 수: 7 (최근 30일)
이전 댓글 표시
When instantiating a COM Object built with MATLAB Builder for COM 1.1.2 (R14SP1) in a Visual Basic .NET application, I receive the following runtime error:
System.Runtime.InteropServices.SEHException
When instantiating the same object in a Visual Basic 6.0 application, I receive the following runtime error:
The application has requested the Runtime to terminate in an unusual way.
채택된 답변
MathWorks Support Team
2009년 6월 27일
These runtime errors may occur when files extracted from the CTF archive are older than the latest build of the project.
The first time your program instantiates a COM object built using MATLAB Builder for COM, the COM object causes the .ctf file created by the Builder to expand. The CTF-file expands into a folder called appname_mcr, where appname is the name of your application. Subsequent instantiations of the COM object will use the files in the appname_mcr folder instead of re-extracting the archive.
If you need to recompile your COM object, it is good practice to delete the appname_mcr folder, so that the newer files will be extracted.
댓글 수: 0
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 COM Component Integration에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!