'Add Item From Memory' Issue


I am trying to add an Item to the Project via Item_OnCommand using the AddItemFromMemory method on a Class I create (using LVClass.Create method).

The code works fine when running 'normally in LabVIEW' however, when this code is called through the Provider I get an Error:

Error 1004 occurred at an unidentified location

Possible reason(s):

LabVIEW:  The VI is not in memory.

If I save the newly created Class to disk then use the AddFile method, then it works.

The Error is generated immediately after the AddItemFromMemory method is called.


I maybe doing something wrong but I am thinking this may have something to do with the Context?

Can anyone offer advice?



Certified LabVIEW Architect * LabVIEW Champion
0 Kudos