Effacer les filtres
Effacer les filtres

Matlab crashes when calling dll

3 vues (au cours des 30 derniers jours)
vinothkannan K
vinothkannan K le 31 Mai 2013
We have created a dll for an application if we try to call that dll(run loader.m file)suddenly matlab crashes..Need suggestion in this regard
  2 commentaires
Kaustubha Govind
Kaustubha Govind le 31 Mai 2013
You probably also want to clarify that you are calling into a DLL generated by Simulink Coder, and paste the prototypes of the exports from the library from the header file.
vinothkannan K
vinothkannan K le 5 Juin 2013
Modifié(e) : vinothkannan K le 5 Juin 2013
Hi Kaustubha Govind, We generated header file from dll, even though matlab crashes, when running dll.
This is the command we used for generation of header file
loadlibrary('TOLI_win32','TOLI.h','mfilename','TOLI_header');

Connectez-vous pour commenter.

Réponses (1)

Craig Cowled
Craig Cowled le 31 Mai 2013
Try using 'loadlibrary'.
  12 commentaires
vinothkannan K
vinothkannan K le 5 Juin 2013
Ok i will check in debug mode, Thanks for your support.,
vinothkannan K
vinothkannan K le 6 Juin 2013
Modifié(e) : vinothkannan K le 6 Juin 2013
Hi Friedrich
1)Can you please explain about compiling dll in debug mode?
2) What are all the configuration parameter settings for debug mode dll compilation?
3) How to attach debugger to it at runtime?
Thanks in advance

Connectez-vous pour commenter.

Catégories

En savoir plus sur C Shared Library Integration dans Help Center et File Exchange

Produits

Community Treasure Hunt

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

Start Hunting!

Translated by