We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1fd8183 commit 17c8990Copy full SHA for 17c8990
lsl_loadlib.m
@@ -62,9 +62,15 @@
62
error(['Apparently the file "' dllpath '" is missing on your computer. Cannot load the lab streaming layer.']); end
63
64
% open the library and make sure that it gets auto-deleted when the handle is erased
65
- hlib = lsl_loadlib_(dllpath);
+ try
66
+ hlib = lsl_loadlib_(dllpath);
67
+ catch e
68
+ disp('See https://github.com/labstreaminglayer/liblsl-Matlab/#troubleshooting for troubleshooting tips');
69
+ error(['Error loading the liblsl library: ', e.message]);
70
+ end
71
+
72
hlib.on_cleanup = onCleanup(@()lsl_freelib_(hlib));
73
74
if keep_persistent
75
lib = hlib; end
-end
76
+end
0 commit comments