Why do I recieve a runtime error when using a COM object built with MATLAB Builder for COM 1.1.2 (R14SP1)?
7 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
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.
Respuesta aceptada
MathWorks Support Team
el 27 de Jun. de 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 comentarios
Más respuestas (0)
Ver también
Categorías
Más información sobre COM Component Integration en Help Center y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!