Using calllib function to GetLicense. matlab crashes without error when license not found
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Hi all
I have compiled an executable on Matlab R2014a which needs to verify the license on a dongle key before it can be launched. Below is the part of the code that I have used to get the license
i = int32(1); pointer = lib.pointer('stringPtrPtr', {'-version'}); calllib('IPGwin64','GetLicense', i, pointer);
The code works fine. However if the dongle is not inserted in the computer, matlab crashes without giving any error. what I would like to do is to have pop up window showing the reason for crash.
I would really appreciate if someone could help me sort this out.
Thank you
0 commentaires
Réponses (0)
Voir également
Catégories
En savoir plus sur Manage Products dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!