MATLAB crashes when absolute path is used in a .mex file
Show older comments
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 Comments
dpb
on 25 Jun 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
on 26 Jun 2018
Accepted Answer
More Answers (0)
Categories
Find more on File Operations in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!