Why do I recieve a runtime error when using a COM object built with MATLAB Builder for COM 1.1.2 (R14SP1)?
7 views (last 30 days)
Show older comments
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.
Accepted Answer
MathWorks Support Team
on 27 Jun 2009
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 Comments
More Answers (0)
See Also
Categories
Find more on COM Component Integration in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!