MATLAB crashes when absolute path is used in a .mex file
Afficher commentaires plus anciens
I have a .mex file which writes information to a file and accepts as one of its arguments the file name/path. When I pass a relative path, i.e.
foo(__,'../../SomeDirectory/filename.ext')
everything is fine. I have tried very convoluted relative paths and it works every time. When I decide to pass an absolute path, like
foo(__,'C:/SomeDirectory/SomeDirectory2/SomeDirectory3/filename.ext')
MATLAB closes.
3 commentaires
dpb
le 25 Juin 2018
Any chance the absolute path contains embedded blanks and isn't being double-quoted or somesuch?
As OCDER says, a minimal example code that illustrates the problem would be most helpful; debugging from symptom only is tough.
Peter Hristov
le 26 Juin 2018
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur File Operations dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!