()
| 87 | } |
| 88 | |
| 89 | private getLib() |
| 90 | { |
| 91 | try |
| 92 | { |
| 93 | const lib = koffi.load(this.dllPath); |
| 94 | return lib; |
| 95 | } |
| 96 | catch (err) |
| 97 | { |
| 98 | console.error(err); |
| 99 | throw new BrainFlowError (BrainFlowExitCodes.GENERAL_ERROR, |
| 100 | `${'Could not load MLModule DLL - path://'}${this.dllPath}`); |
| 101 | } |
| 102 | } |
| 103 | |
| 104 | public static getInstance(): MLModuleDLL |
| 105 | { |