Good morning, the error was that I didn´t put the 2 .dll-s in the exe. all the files that I need to use, have to be in th epackage of .exe.
Simulink dll and matlab standalone
3 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
good morning, first of all I am going to describe what I want. I have a simulink model and gui application. From the simulink model I got a shared library (dll) to use with my gui. From the gui I execute all the commands and it works perfectly.
The problem starts when I create and standalone executable from the gui. When I want to load the library (the dll i created from the simulink model), it crashes. For get the solution I try different things.
1- I launch the standalone application from the command line to observe what is on, and the return when i want to load the library is this:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/151623/image.png)
In english The specified module could not be found.
2- after that I try with dependency walker software to wacht what happend when I load the librry. This is the return:
LoadLibraryA("D:\Proyectos\MATLAB\figura\for_redistribution_files_only\model_win64.dll") called from "LIBUT.DLL" at address 0x00000000FE9B414D.
Loaded "MODEL_WIN64.DLL" at address 0x000007FEF52E0000. Successfully hooked module.
DllMain(0x000007FEF52E0000, DLL_PROCESS_ATTACH, 0x0000000000000000) in "MODEL_WIN64.DLL" called.
DllMain(0x000007FEF52E0000, DLL_PROCESS_ATTACH, 0x0000000000000000) in "MODEL_WIN64.DLL" returned 1 (0x1).
LoadLibraryA("D:\Proyectos\MATLAB\figura\for_redistribution_files_only\model_win64.dll") returned 0x000007FEF52E0000.
LoadLibraryA("C:\Users\59309\AppData\Local\Temp\59309\mcrCache8.4\figura1\figura\model_win64_thunk_pcwin64.dll") called from "LIBUT.DLL" at address 0x00000000FE9B414D.
LoadLibraryA("C:\Users\59309\AppData\Local\Temp\59309\mcrCache8.4\figura1\figura\model_win64_thunk_pcwin64.dll") returned NULL. Error: No se puede encontrar el mdulo especificado (126).
LoadLibraryExA("C:\Users\59309\AppData\Local\Temp\59309\mcrCache8.4\figura1\figura\model_win64_thunk_pcwin64.dll", 0x0000000000000000, LOAD_WITH_ALTERED_SEARCH_PATH) called from "LIBUT.DLL" at address 0x00000000FE9B4164.
LoadLibraryExA("C:\Users\59309\AppData\Local\Temp\59309\mcrCache8.4\figura1\figura\model_win64_thunk_pcwin64.dll", 0x0000000000000000, LOAD_WITH_ALTERED_SEARCH_PATH) returned NULL. Error: No se puede encontrar el mdulo especificado (126).
DllMain(0x000007FEF52E0000, DLL_PROCESS_DETACH, 0x0000000000000000) in "MODEL_WIN64.DLL" called.
DllMain(0x000007FEF52E0000, DLL_PROCESS_DETACH, 0x0000000000000000) in "MODEL_WIN64.DLL" returned 1 (0x1).
Unloaded "MODEL_WIN64.DLL" at address 0x000007FEF52E0000.
> throw_segv_longjmp_seh_filter()
throw_segv_longjmp_seh_filter(): C++ exception
< throw_segv_longjmp_seh_filter() = EXCEPTION_CONTINUE_SEARCH
> throw_segv_longjmp_seh_filter()
throw_segv_longjmp_seh_filter(): C++ exception
< throw_segv_longjmp_seh_filter() = EXCEPTION_CONTINUE_SEARCH
> throw_segv_longjmp_seh_filter()
throw_segv_longjmp_seh_filter(): C++ exception
< throw_segv_longjmp_seh_filter() = EXCEPTION_CONTINUE_SEARCH
> throw_segv_longjmp_seh_filter()
throw_segv_longjmp_seh_filter(): C++ exception
< throw_segv_longjmp_seh_filter() = EXCEPTION_CONTINUE_SEARCH
> throw_segv_longjmp_seh_filter()
throw_segv_longjmp_seh_filter(): C++ exception
< throw_segv_longjmp_seh_filter() = EXCEPTION_CONTINUE_SEARCH
> throw_segv_longjmp_seh_filter()
throw_segv_longjmp_seh_filter(): C++ exception
< throw_segv_longjmp_seh_filter() = EXCEPTION_CONTINUE_SEARCH
I don´t know what I am doing wrongly, I don´t know if I put all the neccessary elements in the standalone file generation or no (I put .fig, .m, and the header). I don`t what is the problem if in matlab everything works perfectly.
Thanks in advance
Réponse acceptée
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur String 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!