Using npps API for two instances yield Wrong results for Second call

I"m using nppsMeanStdDev_32f twice,
First time i use it with myStream1 after calling API
nppSetStream(myStream1) => Results are OK

Than After destroying myStream1 and free device memory, i allocated memory and created myStream2 and called API
nppSetStream(myStream2)

this time after executing nppsMeanStdDev_32f i got “no error” status ,
But the results are wrong - all zero.

If i called nppSetStream(0) before releasing the memory than the results wereOK.
Is it a bug or maybe it is required but omitted from documentation?

Regards
Shlomi

NppClass.cpp (4.2 KB)

1>nppClass.obj : error LNK2019: unresolved external symbol nppsMalloc_8u referenced in function “public: __cdecl nppClass::nppClass(void)” (??0nppClass@@QEAA@XZ)
1>nppClass.obj : error LNK2019: unresolved external symbol nppsMeanStdDevGetBufferSize_32f referenced in function “public: __cdecl nppClass::nppClass(void)” (??0nppClass@@QEAA@XZ)
1>nppClass.obj : error LNK2019: unresolved external symbol nppsMeanStdDev_32f refer

could u share your project file?