AnsweredAssumed Answered

Access violation on initializing  PISDK in dll

Question asked by TDurand on Aug 9, 2019
Latest reply on Sep 16, 2019 by TDurand

Hello,

 

I am trying to encapsulate meaningful Cpp PISDK functions in a dll, in order to use them using a different language.

 

The following example works fine for me as a standalone, but fails if I put it inside the DLL (Everything in Cpp).

https://pisquare.osisoft.com/community/developers-club/blog/2012/05/09/c-and-pi-pi-sdk-updatevalues

 

It crash with access violation on the line:

spPISDK.CreateInstance(__uuidof(PISDK));

 

Do you have any idea about why, what is missing, or about the workaround?

 

Thank you for your help.

Best regards

Outcomes