06-16-2015 08:30 AM
Hi,
I am trying to develop plugin application using packed libraries but I have some probem with loading the library. I can describe the issue:
I have 3 packed libraries:
lvpplA containing class A (parent)
lvpplB containing class B (child of A)
When the application starts, lvpplA is loaded dynamically from the folder and class A is load by Get LV Class Default Value.vi. When the class is loaded, it starts searching its children in the subfolders. It founds lvpplB and try to load class B. However, the function fails with error 1498 LabVIEW: Library has errors. Fix the errors before attempting this operation.
When I run the app again from the IDE, it works ok without error. It is probably because the A is already in memory but why it does not work during the first run ...
06-23-2015 07:39 AM
Dear Charlie,
this problem sounds like you are unable to load the plugin libraries, most likely because of missing dependencies from vi.lib and instr.lib and such. From an architectural point of view, you have to aim for self-contained plugins that have all the required dependencies inbuilt. I recommend building source distros from the plugin libraries.
Alternatively, you can include static references of the plugin classes somewhere in the application. This I cannot recommend as a final solution, but it should clear up the links.
Regards:
11-21-2021 10:06 PM
I have the same error 1498. I use LV2018 ,in the labVIEW mode it can run. but when I build to app, have the error 1498.
when I do not use the “get LV Class Default Value.vi”,not dynamic load actor ,the build app can run succeed。
if I want to dynamic load actor what should I do ,how to modify the app build setting?
11-21-2021 11:29 PM
By any chance, you're using VIM files in the packed library? - those are not supported.
On another post, the user had a coworker develop a PPL in 2020 using the sort 1D array VIM when loaded in caused trouble and resulted in 1498 and they narrowed it to the VIM.
11-22-2021 02:18 AM
Hi,
The packed libraries works fine now, but I do not remeber what the problem was. Do you have all the DLL (lvanlys.dll, ...) in the folder with the packed libraries ?