Skip to content

Commit eb41c03

Browse files
committed
Don't unload the library on destruction (better compatibility with COM), fix libisloaded call.
1 parent 28d0f88 commit eb41c03

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

+DSS_MATLAB/IDSS.m

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -63,17 +63,17 @@
6363
function obj = IDSS(obj)
6464
MfilePath = fileparts(mfilename('fullpath'));
6565
DLLfilePath = fullfile(MfilePath, 'dss_capi_v7');
66-
if libisloaded(DLLfilePath)
66+
if libisloaded('dss_capi_v7')
6767
return
6868
else
6969
loadlibrary(DLLfilePath, @DSS_MATLAB.dss_capi_v7_no_thunk);
7070
obj.libraryWasLoaded = 1;
7171
end
7272
end
7373
function delete(obj)
74-
if (obj.libraryWasLoaded ~= 0)
75-
unloadlibrary('dss_capi_v7');
76-
end
74+
% if (obj.libraryWasLoaded ~= 0)
75+
% unloadlibrary('dss_capi_v7');
76+
% end
7777
end
7878

7979
function obj = ClearAll(obj)

0 commit comments

Comments
 (0)